Page 1 of 1

How to extract the trigger from a poly stream?

Posted: Thu Jun 04, 2015 8:48 pm
by glitchcpt
Hi guys,

Not sure If I put that correctly,
I'm basically trying to split the signal out of the "Freq" output of the MIDI to Poly module,
into 2 Streams, for Frequency/Trigger, and then combine them later in the chain,

I can't seem to figure this out,
any help would be greatly appreciated :)

Re: How to extract the trigger from a poly stream?

Posted: Thu Jun 04, 2015 8:52 pm
by MyCo
Can you be a little more specific on what you're trying to achieve?

Re: How to extract the trigger from a poly stream?

Posted: Fri Jun 05, 2015 3:13 am
by nix
If I understand correctly,
you might find it better to use the trigger or gate out of the MIDIpoly for on/off,
and freq for pitch.
If you want to create a trigger from frequency you need to do a one sample delay and use a false comparator. It will compare the current and delayed to ascertain wether there is a change in the signal, thus specifying an event. I recommend not doing this really, ie. how do we know which one is on and which is off. I would quickly lose track of what is on and off for all the streams.

Re: How to extract the trigger from a poly stream?

Posted: Fri Jun 05, 2015 10:19 am
by glitchcpt
Sorry for not being more specific,

Basically its working like this so far:

I have the MIDI to Poly module frequency output running through a series of modules, but by the time it reaches the oscillator, it is only receiving the frequency information, and not the event trigger,

I could use the trigger output from the MIDI to Poly module, but how would I blend the trigger and frequency back into a single poly stream?

Thanks!

Re: How to extract the trigger from a poly stream?

Posted: Fri Jun 05, 2015 4:54 pm
by Nubeat7
i'm not sure if some basics are clear here,

a stream is constantly changing value (mostly 44100 times per second) while for example the green stuff in FS is trigger based which means that a value change is triggered from some source (mostly from the gui)

so a trigger in a stream would be a pulse of one sample for example at note on or note off
an you also have the gate which reacts on note on / off

it is still unclear what you mean with the poly triggers?

for the osc input you don't need any triggers you just set the frequency... if the schematic is more complex (after you are tellĂ­ng that there are a couple of modules before, you also can post the schematic and explain the problem there so it would be easier to understand instead of speculating what you mean

Re: How to extract the trigger from a poly stream?

Posted: Sat Jun 06, 2015 6:11 am
by glitchcpt
OK I have made an example, the first time i picked it up was when i played around with your cable patcher, Nubeat

PS I like it alot, just can't figure this part out

Re: How to extract the trigger from a poly stream?

Posted: Sat Jun 06, 2015 9:49 pm
by Nubeat7
seems to work fine here, the only thing i found is that the little ruby module in the sources and in the targets module gives an error when clicking inside, i wrote the content into the event methode and it seems to fix this little issue.. but the rest is working fine now...

i saw that the generic driver (never used this) is used - this isn't working here - but with the asio drivers it works well (also asio4all)

here is the little fix (while it did work also without this as long as you don't click inside this modules..)

Re: How to extract the trigger from a poly stream?

Posted: Sun Jun 07, 2015 1:07 pm
by glitchcpt
Thank you!

It seems to be working fine now :)

strange