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

Re: [sc-users] Sample synchronous bundle/beats?





2014-12-12 1:37 GMT+01:00 Lucas Samaruga <samarugalucas@xxxxxxxxx>:
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?


Maybe I don't understand the problem or the formulation ("separately at any time") ? 

But, evaluating the first two lines together (defining t and f), 
and then the next two (t.schedAbs etc) together results in silence here.

Freeing x afterwards plays y at full scale.


 

Best
Lucas