electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Clavia Nord Modular » Nord Modular G2 Discussion
Send last of 7 values based on last of 7 possible logic sigs
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
speak_onion



Joined: Oct 19, 2009
Posts: 57
Location: Queens, NY
G2 patch files: 3

PostPosted: Tue Mar 15, 2011 9:39 am    Post subject: Send last of 7 values based on last of 7 possible logic sigs
Subject description: how to?
Reply with quote  Mark this post and the followings unread

Ok, here's what I'm trying to do:
I have 7 possible logic events. They go high for variable amounts of time, and it's possible that more than one of them can go high at once. Each of the 7 events corresponds to a certain control value I want to send to a single input. The values are not evenly spaced. I want the last logic event to go high to send its corresponding control value, even if one ore more other logic signals are also still high.

How can I do that?

Here's what I have so far:
Each logic signal goes to the control input of a value switch with zero on the "off" input and the corresponding control value on the "on" input. The outputs of all 7 value switches are mixed with an 8-1 mixer, and the output of the mixer goes to both the clock and the input of a s/h module. That way, when one of the signals goes high (from all of them being low), the s/h module gets and samples the corresponding control value. But, it can't update until all logic signals go back low again. That is, first trigger priority instead of last trigger priority.

Any help is appreciated. Thanks!
Back to top
View user's profile Send private message
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Tue Mar 15, 2011 11:36 am    Post subject: Reply with quote  Mark this post and the followings unread

I'd say you're almost there.

A module I use pretty often is the logic pulse, which will emit a pulse of variable length when the input goes high.

You could put the pulse before the switch, and set the pulse length to just long enough so that s/h grabs it.

I think I might want to do something involving a mux though, to get it robust. My mind is in a state of chaos right now, maybe you can work it out anyway. Smile

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
speak_onion



Joined: Oct 19, 2009
Posts: 57
Location: Queens, NY
G2 patch files: 3

PostPosted: Tue Mar 15, 2011 5:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is what I have so far anyway.

I'll keep experimenting.


ButtonsToCCValues.pch2
 Description:

Download
 Filename:  ButtonsToCCValues.pch2
 Filesize:  1.76 KB
 Downloaded:  3749 Time(s)

Back to top
View user's profile Send private message
iPassenger



Joined: Jan 27, 2007
Posts: 1067
Location: Sheffield, UK
Audio files: 5
G2 patch files: 78

PostPosted: Wed Mar 16, 2011 1:28 am    Post subject: Reply with quote  Mark this post and the followings unread

Haven't seen your patch as I am at work.. but if I understand correctly one of your problems is that the main sample and hold isn't sampling for each new value (the value which has essentially been created by a series of logic on or off signals).

Could you run each of the original logic signals through its own pulse module, to create a very short pulse at the on of each logic signal. Then mix these pulses together either with a mixer or perhaps a series of OR gates. Then feed this signal to the logic input of the sample hold unit that isn't working. Leave the rest of your patch the same. So now whenever any of the logic signals goes positive, a very short pulse is created and it should cause the sample and hold to take a new sample.

The only problem I can forsee is that if all logic signals are off then there will be no trigger for the sample and hold. To get round this one you could use a series of AND gates chaining together the outputs of all the logic signals. Then run the output of this through an inverter, so that the inverter signal is positive when all the other logic signals aren't. Then run that through a pulse module and into your pulse mixer (or series of OR logic gates). An alternative to using a series of AND gates might be to take the output of your control value mixer and run it through a compare to value module with the value set to the highest possible control value (e.g. all logic signals are on) and run that through an inverter pulse combo instead.

_________________
iP (Ross)
- http://ipassenger.bandcamp.com
- http://soundcloud.com/ipassenger
Back to top
View user's profile Send private message Visit poster's website
speak_onion



Joined: Oct 19, 2009
Posts: 57
Location: Queens, NY
G2 patch files: 3

PostPosted: Wed Mar 16, 2011 9:38 am    Post subject: Reply with quote  Mark this post and the followings unread

OK, I think 8 logic pulse modules mixed to another 8-1 mixer sent to the logic input of my s/h module will give me the behavior I'm looking for. I think I had some misconception of how the s/h module works.

Thanks!
Back to top
View user's profile Send private message
iPassenger



Joined: Jan 27, 2007
Posts: 1067
Location: Sheffield, UK
Audio files: 5
G2 patch files: 78

PostPosted: Thu Mar 17, 2011 11:38 am    Post subject: Reply with quote  Mark this post and the followings unread

Got thinking about your issue and thought this might be useful at some point:


Value Change Logic Positive.pch2
 Description:
It produces a Logic Positive signal every time the input value changes, modules in red relevant the rest are just to show it working. :)

Download
 Filename:  Value Change Logic Positive.pch2
 Filesize:  1.52 KB
 Downloaded:  4068 Time(s)


_________________
iP (Ross)
- http://ipassenger.bandcamp.com
- http://soundcloud.com/ipassenger
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Clavia Nord Modular » Nord Modular G2 Discussion
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use