[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] arguments of a running synth



Hi -

You can use "get" to find out what synth arguments are currently set at:

 mysynth.get(\freqGrund, {|val|   doSomethingWith(val)  })

Note that it's asynchronous, meaning that you can't use the value
straight away, you have to provide a function (as in my example) which
will do something will the value once it's been sent back from the
server.

Your example, where one synth arg affects the possible range of
another synth arg, would be MUCH easier to do by handling the scaling
all inside the SynthDef (e.g. by doing "ausschlag = ausschlag *
freqGrund" somewhere near the start of the SynthDef).

Best,
Dan


2007/10/25, Björn Kessler <kebjoern@xxxxxxxx>:
> Hi again,
>
> I would like to make a slider thats range changes in dependence of a
> argument of the synth:
>
> sli5 = GUI.slider.new( win, Rect( 130, 10, 20, 240));
> sli5.action = { synth.set( \ausschlag,
>     sli5.value.linlin( 0, 1, 0, [argument of the Synth] // **
>
> ));
> };
>
> ** \freqGrund is an argument of the Synth synth. I tried something like
> synth.value( \freqGrund )
>
> Sorry if it is a fundamental thing!
>
> Thanks in advance,
>
> Björn
>
>
>  ________________________________
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s
> mit dem neuen Yahoo! Mail.
>
>
> _______________________________________________
> sc-users mailing list
> sc-users@xxxxxxxxxxxxxxx
> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
>


-- 
http://www.mcld.co.uk