how an empty node can produce a value?

For general discussion related FlowStone
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: how an empty node can produce a value?

Post by Nubeat7 »

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:

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;
Post Reply