[sc-users] Accessing parameters of a Synth which is created from outside sclang
Scott Wilson
i at scottwilson.ca
Sun Apr 6 15:09:31 PDT 2008
If you know the node ID you could use Synth:basicNew to create a
Synth object for it.
S.
On 6 Apr 2008, at 22:58, Batuhan Bozkurt wrote:
> Hi dear SC users,
>
> Sorry for the long subject line, I just couldn't summarise the
> problem. :)
>
> Say, I baked a synthdef and sent it to server, then I create an
> instance
> of it from outside sclang(via OSC).
> What should I do if I want to access its parameters from sclang
> while it
> is running? If all took place in sclang, I'd do:
>
> g = Synth.new("cookieMonster");
>
> then if I want to access its variables I'd do:
>
> g.set("gnamgnam", 5);
>
>
> But in such case, I have the variable "g" referenced to synth so its
> easy. When I create the synth from outside sclang, how am I going to
> refer to it? Is there an elegant and easy way to do it in a live
> coding
> situation?
>
> Thanks for the help.
> BB
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
More information about the sc-users
mailing list