Hi Jonatan,

You can do the following:

process = hgroup("proc", def);
def = vgroup("innerbox", hslider("../slider",0, 0, 1, 0.01));


instead of

process = hgroup("proc", def);
def = vgroup("innerbox", hslider("slider",0, 0, 1, 0.01));


or you can code full pathname directly:

process = hslider("h:proc/v:innerbox/slider",0, 0, 1, 0.01);

or mix the two approaches:

process = hgroup("proc", def);
def = vgroup("innerbox", hslider("../v:foobox/slider",0, 0, 1, 0.01));


(see https://faust.grame.fr/doc/manual/index.html#labels-as-pathnames)

Cheers

Yann


Le mar. 6 nov. 2018 à 21:50, Jonatan Midtgaard <jonatan.midtga...@gmail.com>
a écrit :

> Is it correct that the syntax for the names are different between hsliders
> and e.g. vgroups?
>
> Something like
>
> process = hgroup("proc", def)
> def = hslider("/slider",...)
>
> will compile to a HorizontalSlider in the outermost box. But with
>
> process = hgroup("proc", def)
> def = vgroup("innerbox", hslider("/slider",...))
>
> It compiles to a slider in the "innerbox" box.
> Is this the intended behaviour? And if it is, is there any way to 'escape'
> the innerbox such that the slider is defined in the outermost box?
> I ask because in our project, we have a large number of Faust files
> linking to the surrounding C++ program so changing the hierarchy in some
> other way is quite difficult.
>
>
> _______________________________________________
> Faudiostream-users mailing list
> Faudiostream-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to