I can't figure out what's happening here:

swirl(lfophase) = select2(modtype,swirl1(p),swirl2(p*(PI/2))) with {
    modtype = checkbox("modtype");
    phasesep = checkbox("modsep");
//    p = select2(phasesep,0,lfophase);
//    p = (0,lfophase) : selector(phasesep,2);
//    p = phasesep * lfophase;
    p = lfophase; // this is OK
};

All the commented out lines gives this error:

Error in sequential composition (A:B)
The number of outputs (1) of A = 0,_:max
must be equal to the number of inputs (2) of B :
(_,(1,(-1,(0.1,(192000,(1,fconstant(fSamplingFreq):max):min):*):/:exp):-):.......lots
of stuff cut away...

But p = lfophase works fine. Of course, multiplying lfophase with a
value shouldn't change any number of inputs/outputs.

I call swirl two times with 0 and 1 as argument, and my guess is that
faust optimizes away the 0 too early (because of the checkbox?) and
messes up the number of inputs?

-- 
/Jonatan
http://kymatica.com

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to