Hi Jean-Louis,

Thanks! I think we agree on the semantics, but the syntax will probably be
a little different to be in the block diagram/circuit style of Faust.

Cheers

Yann

Le mar. 7 juin 2022 à 20:02, Jean-Louis Paquelin <jean-lo...@paquelin.net>
a écrit :

> Hello,
>
> Here is a short *pseudo* Faust program to clarify my proposition about
> how to automate / animate the UI widgets of a Faust program from Faust.
>
> import("stdfaust.lib");
>
> process = os.osc(hslider("freq", 440,100,1000,1));
>
> // Added part to animate the UI of the "main" program.
>
> ui.freq.add = os.lf_triangle(1) * 100; // This will modulate the freq
> slider by +/- 100 Hz at 1 Hz rate
>
>
> The output of the lf_triangle * 100 is added the value set by the UI.
>
> In other words, every (or some) UI may have a set of inputs / methods
> accessible from the Faust code. These inputs could be fed with streams
> (maybe at lower rate) provided later on by a different user/programmer. If
> not used, these inputs would have smart default values (like 0 for .add or
> 1 for .mult).
>
> We almost can do that yet by adding the lfo to the UI returned value, like
> this
>
> process = os.osc(hslider("freq", 440,100,1000,1) + os.lf_triangle(1) * 100
> );
>
> But this needs to modify the source code and (imho) it kills readability.
>
> Best regards,
>
> jlp
>
>
> _______________________________________________
> Faudiostream-devel mailing list
> Faudiostream-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-devel
>
_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to