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

Re: [sc-users] Bus questions



Sorry if this mail shows up on the list twice. I sent the first time about 16 hours ago and I don't see it.

Here's a little bit of the code I was trying to work out. Julian said I should post some.

//pan2 because i thought it'd be neat to pan them around.
(
"hit",{ arg out=0, t_trig=0, amp=1, bufnum;
Out.ar(out,
Pan2.ar(
PlayBuf.ar(2,bufnum, BufRateScale.kr(bufnum), trigger: t_trig ),
0, amp)
);
}).send(s);
)


s.sendMsg("/b_allocRead", 0, "sounds/KickOp(13).wav");
s.sendMsg("/b_allocRead", 1, "sounds/SnareOrdRH(12).wav");

s.sendMsg("/s_new", "hit", 1000, 1, 0, "bufnum", 0, "out", 2);
s.sendMsg("/s_new", "hit", 1001, 1, 0, "bufnum", 1, "out", 4);

//and then this gets the sound on busses 2 through 5 and puts them on 0 and 1. (this is probably what is incorrect)

(
"out", {arg out=0;
var in;
in = In.ar([2,3,4,5],2);
Out.ar(0, in);
}).send(s);
)

s.sendMsg("/s_new", "out", 1010, 1, 0);