Hi,
I was trying to spread 4 channels that are produced in this code evenly spread out using Splay, but all I get is a mixdown to mono and .dup.
I either don’t understand how Splay works or …
example:
b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");
(
x = {
arg out = 0, bufnum, dur=0.2, freq=140, amp=0.5;
var snd;
snd = GrainBuf.ar(numChannels: 2,
trigger: Impulse.kr(freq * LFNoise0.kr(freq).range(0.5,1.5)),
dur: dur,
sndbuf: bufnum,
rate: [0.2,0.3,0.4,0.5],
pos:LFTri.ar(0.01, iphase:[0.5,1,0,2]).range(0,1),
interp: 4
);
// this works:
// snd = [snd.at(0),snd.at(1)] + [snd.at(3),snd.at(2)] * amp;
// this is like mixdown to mono and .dup:
snd = Splay.ar(snd * amp, spread:1);
//Out.ar(out, snd);
}.play(s,[\bufnum, b]);
)
I would be greatful to any pointer to what I’m doing wrong.