> Le 22 déc. 2020 à 14:29, Daniele Pagliero <daniele.pagli...@gmail.com> a 
> écrit :
> 
> this statement is clear:
> 
>     recIndex = (+(1) : %(maxSamples)) ~ *(btn)
> 
> and I can translate it in something like:
> 
>     recIndex = ((recIndex + 1) %  maxSamples) * btn

No, you cannot write the second version with «  recIndex »  appearing on both 
sides.

I suggest you read again the documentation of the recursive operator:

https://faustdoc.grame.fr/manual/syntax/#recursive-composition

And possibly this workshop that implements a phasor using a recursion:  
https://faustdoc.grame.fr/workshops/2018-12-01-paw/ ?

Stéphane 

_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to