| Author |
Message |
tendril ferris

Joined: Feb 04, 2008 Posts: 37 Location: sf bay
|
Posted: Fri Jun 13, 2008 1:55 pm Post subject:
logic selection q Subject description: how to grab the on value |
 |
|
hi there,
just wondering if there's an easy way to look at a gate's output and only output the "ons" from that gate...
i feel like there's a lack of information in the description for such things in the manual...
thanks,
b |
|
|
Back to top
|
|
 |
blue hell
Former site admin

Joined: Apr 03, 2004 Posts: 24864 Location: The Netherlands, Enschede
Audio files: 353
G2 patch files: 320
|
Posted: Fri Jun 13, 2008 2:05 pm Post subject:
|
 |
|
| I'm not sure what you mean ... could you try other words? Maybe a description of what you want to use it for. |
|
|
Back to top
|
|
 |
tendril ferris

Joined: Feb 04, 2008 Posts: 37 Location: sf bay
|
Posted: Fri Jun 13, 2008 2:21 pm Post subject:
|
 |
|
sorry;
i have the gate input from the midi note ins (velocity), and i want to count the note-ons... i want to take those "high" or "greater than or equal to 1" values and use them for things like resetting, or counting, etc.
also, since i know that you know this off the top of your head (great patches, by the way; love your contributions to this forum), can you tell me of an easy way to count to 32 and then output a "high" message, for ex? |
|
|
Back to top
|
|
 |
blue hell
Former site admin

Joined: Apr 03, 2004 Posts: 24864 Location: The Netherlands, Enschede
Audio files: 353
G2 patch files: 320
|
Posted: Fri Jun 13, 2008 3:44 pm Post subject:
|
 |
|
Ah got it .. maybe ... thought you meant the logic gate module
You can just use the ClkDiv module from the logic page, it's output will go from 0 to 1 after it's input went count times from zero to 1.
But you only want to count when the velocity is over a certain value? If so use a comparator module (level/complev) to compare the velocity against a preset level, you can AND that signal with the gate output to get a logic signal that goes active when the gate goes on and the level is above the threshold ... something like that?
And thanks for your kind words! |
|
|
Back to top
|
|
 |
tendril ferris

Joined: Feb 04, 2008 Posts: 37 Location: sf bay
|
Posted: Fri Jun 13, 2008 5:57 pm Post subject:
|
 |
|
certainly.
that gives me more than enough info to go by;
thank you.
one more thing:
can you tell me where i might be able to check into more information like this and more... i'm also interested in bitshifting, packing bits, demuxing, and how to sequence without the bulky sequencer modules...
thanks... _________________ t____
------- |
|
|
Back to top
|
|
 |
blue hell
Former site admin

Joined: Apr 03, 2004 Posts: 24864 Location: The Netherlands, Enschede
Audio files: 353
G2 patch files: 320
|
Posted: Sat Jun 14, 2008 4:06 am Post subject:
|
 |
|
Some links for the NM Classic come to mind like James Clark has a chapter about logic modules. Rob Hordijk has a logic workshop at the Clavia site and he has some info on his own site as well. We have some building blocks on this forum - there might be useful stuff in that for you and Sebastian Berweck's patcher's toolbox ... that's about it I think ...
BTW the sequencer modules are pretty efficient, building comparable functionality with random logic will always cost more resources. You can use multiplexers though for sequencing when 8 steps will do, and that gives some flexibility as there is no need to feed it constant values to sequence over.
What do you mean by bit packing? |
|
|
Back to top
|
|
 |
|