This would be a go. signal for an enveloppe generated in he code.
any help would be great..
cheers
philter5 ·
you should have a look at the equal components from the toolbox (in the compare folder).
MegaHurtz ·
based on something like this.
streamin trg;
streamin time;
streamout index;
float index;
index = (trg > 0)& index + 1 * (index < time) & 1.;
MegaHurtz ·
without stopping the count when 0.
exonerate ·
streamin trg;
streamin time;
streamout out;
float index;
index = index + 1 & (index < time);
out = (trg > 0)& index;
I think that should be along the lines of what you want, all though you had two variables with the same name, so that left me slightly confused, but going by your code and with out stopping the count, that should basically be what your after.
Cheers 😉
Exo
MegaHurtz ·
the basic idea is to let it start a ramp when the trigger signal is >0.
and continue the function if it goes from >0 to 0.
exonerate ·
MegaHurtz wrote: the basic idea is to let it start a ramp when the trigger signal is >0.
and continue the function if it goes from >0 to 0.
Ok then this should do it......
streamin trig;
streamin time;
streamout index;
float reset,trigOld;
reset = (trig > trigOld);
index = index + 1 & (index < time);
index = (reset < 1) & index;
trigOld = trig;
Cheers 😉
Exo
MegaHurtz ·
yea thats it..
Great approach (trig > trigOld)
thx
Wrote something here? To have a post removed or your name hidden, write to [email protected].