Hello,

when writing something like

[...]
process = (_,_) <: ((reverb:par(i,2,_*(wet))), par(i,2,_*(1-wet))) :> (_,_);


faust generates the following SC language code:

FaustBlah : MultiOutUGen
{
 *ar { | in1, in2 |
     ^this.multiNew('audio', in1, in2)
 }
//[...]
}

which is not necessarily wrong... (if the two inputs are not stereo signals, 
which they are in our implementation... :)

however, an interface like the one in Pan2 would be syntactically much better 
(see below). Is it possible to tell Faust to generate this instead?

Thanks (also for the faust language, it's rats!)
        Till


Pan2 : MultiOutUGen {
        *ar { arg in, pos = 0.0, level = 1.0;
                ^this.multiNew('audio', in, pos, level )
        }
        *kr { arg in, pos = 0.0, level = 1.0;
                ^this.multiNew('control', in, pos, level )
        }
        init { arg ... theInputs;
                inputs = theInputs;
                channels = [
                        OutputProxy(rate, this, 0),
                        OutputProxy(rate, this, 1)
                ];
                ^channels
        }
        checkInputs { ^this.checkNInputs(1) }
}

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to