I still can’t understand how the programming works in Faust in relation to samples. Just for me to understand it I wanted to create a script that changes output value at certain time. I know that such function already exists, but I would like to understand how code works in relation to time :)
The idea is every 100 samples change output from 1 to -1 and back (so square signal). The code I’ve came up to is: out_value = 1.0; val = ba.if(ma.modulo(ba.time, 100) == 0, -out_value, out_value); process = val; But what I get is just one sample with negative value and not additional 100 samples. So I guess my assumptions about how Faust is working are wrong, but I just can’t get the idea how to do it. Any suggestions? Thanks. B.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users