hi all -
i’ve been trying to take a bunch of instances of a function (each to a different channel) and mix them together/record the final output in a separate function. It only seems to be recording the first channel, though.
Can anyone tell me where I’ve gone wrong?
~buffer= Buffer.alloc(s, 44100*1, 8);
~bus = Array.fill(8, {Bus.audio(s, 1)});
~sines = {
|out, freq|
Out.ar(out, SinOsc.ar(freq, 0, 0.01));
};
~mixer = {|in, buf|
var sig = In.ar(in, 8);
RecordBuf.ar(sig, buf);
Out.ar(0, sig);
};
{~mixer.(~bus, ~buffer)}.play;
8.do{|i| {~sines.(~bus[i], 3000.rand)}.play};