Hi Till,
Since I was probably the last person to touch the Faust-SuperCollider
interface, I feel I should reply. However, I'm not sure what you
mean by "syntactically much better" in the Pan2 case. In any case,
the interface is generated in the Ruby script
<faust_dist>/tools/faust2sc-1.0.0/faust2sc
Search for "input_names", e.g.
Feel free to email me with more details / questions / etc., if you
have any problems getting the behavior you want.
- Julius
At 11:06 PM 8/29/2013, Bovermann Till wrote:
>Hello,
>
>I recently sent a message to the faust mailinglist asking about the
>generation of n-channel SuperCollider UGens. For now I did not get
>any reply and was wondering if anyone of you guys knows (see below)
>
>thanks in advance :)
> Till
>
>
>Begin forwarded message:
>
> > 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) }
> > }
> >
>
>
>_______________________________________________
>sc-users mailing list
>
>info (subscription, etc.):
>http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Julius O. Smith III <[email protected]>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users