On Fri, Aug 9, 2019 at 3:21 PM Bostjan Jerko <bost...@japina.eu> wrote:
>
> Thanks to you and Josh for explaining. I’m basically just in the process of 
> learning how Faust works and you both helped me a lot.
>

Here's one way you could do it by using a state:

create_state(old_counter, old_output) = (new_counter, new_output) with {
   new_counter = ba.if(old_counter==200, 0, old_counter+1);
   new_output = ba.if(old_counter < 100, out_value, -out_value);
};

keep_output(counter, output) = output;

process = create_state ~ (_,_) : keep_output;


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

Reply via email to