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

[sc-users] Sample synchronous bundle/beats?



Hi

I want to cancel the phase of two sinusoids but sending messages separately at any time. I did the following test:

t = TempoClock.default;
f = { arg freq = 440, iph = 1; SinOsc.ar(freq, mul: iph) };

t.schedAbs(t.elapsedBeats.roundUp(1), {s.makeBundle(0.5, {x = f.play(args:[freq: 440, iph: 1])})});
t.schedAbs(t.elapsedBeats.roundUp(1), {s.makeBundle(0.5, {y = f.play(args:[freq: 440, iph: -1])})});

x.free;
y.free;

But it does not work, the time varies. Am I doing something wrong? Can it be done?

Best
Lucas