A short code is attached. Compiling with faust -scal -es 1 -lang ocpp controltest.dsp -o "controltest.faust.hpp"
this gives the error message A[0] == SigEnable[5,0] 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) followed by a stack trace. Changing the -es flag to 0 compiles fine. - Jonatan Den fre. 12. okt. 2018 kl. 08.49 skrev Stéphane Letz <l...@grame.fr>: > Can you send the problematic code? > > Stéphane > > > Le 12 oct. 2018 à 08:47, Jonatan Midtgaard <jonatan.midtga...@gmail.com> > a écrit : > > > > I have updated to 2.11.9. I am still getting the same errors, and also > the -lang ocpp option seems to be causing trouble. Is there an example of > these primitives so I can check if I am doing things right? > > > > - Jonatan > > > > tor. 11. okt. 2018 20.28 skrev Stéphane Letz <l...@grame.fr>: > > The control/enable are « experimental » primitives that are still only > available using the old C++ backend in scalar mode (so doing something like > faust -lang ocpp foo.dsp, or explicitly giving the -lang ocpp argument to > faust2xx script, like for instance faust2caqt -lang ocpp foo.dsp and so > on…) > > > > I’ve just pushed on master-dev some improvements in error message > reporting when using control/enable incorrectly: > https://github.com/grame-cncm/faust/commit/d0c5bae907380f2be8c2ff7dc90e5c5a0006892a > > > > And we’ll have to implement them in -vec mode, then for all FIR based > backends. > > > > Stéphane > > > > > Le 11 oct. 2018 à 12:52, Jonatan Midtgaard < > jonatan.midtga...@gmail.com> a écrit : > > > > > > What is the state of 'true' if statements in Faust at the moment? My > current understanding was that if i have a series of block diagrams > > > > > > f(0) = a; > > > f(1) = b; > > > ... > > > > > > and I want to be able to choose which block-diagram to execute without > the others being executed in the background, it could be done with the > control primitive, e.g. > > > > > > in = hslider("Choice",0,0,N,1) : int; > > > process = par( i, N, control(f(i),in==i) ) :> _; > > > > > > I also saw in an old thread that this requires the -es 1 compiler > flag. However, this results in a compiler error, referring to SigEnable. > > > > > > How correct is my understanding, and should this work? > > > > > > - Jonatan > > > > > > PS: compiler version is 2.10.0 > > > _______________________________________________ > > > Faudiostream-users mailing list > > > Faudiostream-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/faudiostream-users > > > >
controltest.dsp
Description: Binary data
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users