Re: how an empty node can produce a value?
Posted: Wed Sep 18, 2013 12:45 pm
make a float variable for ph and use this instead of the input, then add an offset input for the phase control
like in mycos example you posted here:
viewtopic.php?f=2&t=1686
like this you dont reassign any input:
like in mycos example you posted here:
viewtopic.php?f=2&t=1686
like this you dont reassign any input:
Code: Select all
streamin freq;
streamin morph;
streamin offset;
streamout out;
float delta;
float ramp=0;
ramp = ramp+freq*0.5+offset-delta;
ramp = ramp-(ramp>=1&1);
out = 2*((ramp<=morph)&(ramp/morph)+(ramp>morph)&(1-(ramp-morph)/(1-morph)))-1;
delta = offset;