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

Re: [sc-users] group bus mapping



hi bhob,
how about this:

g=Group.new;

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

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

z={SinOsc.ar(b.kr, 0, c.kr).dup }.play(g);

b.set(240);
c.set(0.1);

y={LFSaw.ar(b.kr, 0, c.kr).dup }.play(g);


grtz,
tom


On 28 Dec 2005, at 06:28, Bhob Rainey wrote:

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);


..................................
..................................