Page 2 of 2

Re: trigger from stream

Posted: Sat Mar 09, 2019 11:42 pm
by tulamide
gvalletto wrote:Thanks Tulamide, your explanations are clear. Regard to the "single precision of floats", no matter for me in this case because I will use integer values from a stream step LFO made with DSP code. I the schme I put a saw LFO just by the example, but really I will use integer values. What do you think about?

Yes, if you make sure that you only ever deal with integers you are safe. Integers can be exactly represented up to 16 million.

Re: trigger from stream

Posted: Sun Mar 10, 2019 12:07 am
by KG_is_back
are you looking for something like this?

Re: trigger from stream

Posted: Sun Mar 10, 2019 12:17 am
by gvalletto
KG_is_back wrote:are you looking for something like this?


Oh my God! Yeah!!!

Re: trigger from stream

Posted: Sun Mar 10, 2019 12:39 am
by KG_is_back
gvalletto wrote:
KG_is_back wrote:are you looking for something like this?


Oh my God! Yeah!!!


OK, there are few warnings I must pose.
First, the schematic outputs triggers that are delayed by exactly 1 buffer size (or more accurately a frame). The timing is correct relative to each other, but you will get different overall lag depending on your soundcard settings.
Second, the schematic is not idiot-proof. It will try to output a green trigger on every single sample that arrives with the value 1 into the "falling ramp" module. Needless to say, this will crash your schematic if you accidentally connect it to something that outputs constant 1.

Re: trigger from stream

Posted: Sun Mar 10, 2019 1:00 am
by gvalletto
Thanks KG. My brain is burning...images/icons/smile/redface.gif
I will experiment.
I think that kind of things should be added as primitives in the toolbox. It will welcome for all those had been fell in love with Synthmaker due its power without codes and that still in love with Flowstone...