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

[sc-users] group bus mapping



okay, so here's the situation:

you have a group:

g=Group.new;

you play a synth on that group:

z={|freq=220, amp=0.1| SinOsc.ar(freq, 0, amp).dup }.play(g);

you map group arguments to busses:

b=Bus.control.set(440);
c=Bus.control.set(0.2);

g.busMap(\freq, b, \amp, c);

OKAY...

you want to add a synth to the group to have the same bus mappings. 
can you do this in one line?  because:

y={|freq=220, amp=0.1| LFSaw.ar(freq, 0, amp).dup }.play(g);

will play with its default arguments, not the bus values, unless you
write again:

g.busMap(\freq, b, \amp, c);

that's okay if you know what the group's bus mappings are.  but what
if they change, and things get complicated?  is there a way to add a
synth node to a group and have the bus mappings of the group apply
without redeclaring them?

-bhob

--
http://bhobrainey.net