Hi Jonatan, I am not sure to understand what the problem is?
import("stdfaust.lib"); process = control(os.osc(440), choice==0), control(os.osc(660), choice==1) :> _; choice = button("choice"); In the above code, only one of the two branches will be computed and the choice will be done at runtime. The semantics of `control` is (approximatively) the following: control(x,y) = x@D(y) with { D(y) = y==0 : +~_; }; Cheers Yann Le mer. 24 oct. 2018 à 16:56, Stéphane Letz <l...@grame.fr> a écrit : > A bit occupied these days, we’ll look at the issue not before next week. > > Stéphane > > > > Le 24 oct. 2018 à 13:19, Jonatan Midtgaard <jonatan.midtga...@gmail.com> > a écrit : > > > > Just bumping this thread in case no one saw it. > > > > Should it possible to be change the branch at runtime? Because that > seems broken at the moment. > > > > - Jonatan > > > >> On 17 Oct 2018, at 12.26, Jonatan Midtgaard < > jonatan.midtga...@gmail.com> wrote: > >> > >> Tested and it works! > >> > >> Follow-up question: > >> Is it possible to change the 'branch' that is calculated at runtime? > Doing this naively with an hslider or button > >> > >> var(0) = 5; > >> var(1) = 9; > >> choice = button("choice"); > >> process = control(var(0),choice==0), control(var(1),choice==1) :> _; > >> > >> Still fails when compiled with > >> faust -scal -es 1 -lang ocpp > >> > >> - Jonatan > >> > >> Den lør. 13. okt. 2018 kl. 09.32 skrev <l...@grame.fr>: > >> Fixed on GIT master-dev branch (compiler version 2.11.10) > >> > >> Stéphane > >> > >> > >> > Le 12 oct. 2018 à 11:05, Jonatan Midtgaard < > jonatan.midtga...@gmail.com> a écrit : > >> > > >> > Thanks for the quick response. Looking forward to hearing about the > developments. > >> > > >> > - Jonatan > >> > > >> > fre. 12. okt. 2018 17.02 skrev Stéphane Letz <l...@grame.fr>: > >> > > > >> > > ASSERT : please report this message, the stack trace, and the > failing DSP file to Faust developers (file: mterm.cpp, line: 511, version: > 2.11.9, options: ocpp, -scal -ftz 0) > >> > > >> > The reported message is indeed correct ! This reveal an issue in the > compiler, we are working on it. > >> > > >> > Thanks. > >> > > >> > Stéphane > >> > > > > > > _______________________________________________ > 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