Hi guys, a question about timing.
I’m interested in making the time between evaluation of code and emission of related sound the shorter I can.
I’ve noticed that when I’m using patterns instead of creating synths directly, I always have a little delay.
Here’s what i mean:
Let this SynthDef be our test synth:
(
SynthDef(\test, {
var sig = SinOsc.ar(440)*EnvGen.ar(Env.perc(), doneAction:2);
Out.ar(0, sig!2);
}).add;
)
Now, if I evaluate the following line the sound is generate immediately:
x = Synth(\test);
On the other hand, when I use something like the following snippet of code, there’s always a (little) gap between the code evaluation and the actual emission of sound:
(
z = Pbind(
\instrument, \test,
\dur, Pseq([0.1], 1)
).play;
)
I’ve alos tryied to set the “quant” argument to 0 but nothing seems to change.
(
z = Pbind(
\instrument, \test,
\dur, Pseq([0.1], 1)
).play(quant:0);
)
Why is there this time delay?
Is there something different I can try to solve it?
Thank you very musch for your support, as always
PS: I’ve also noticed that this time delay can be longer if I use different OS (Windows or Ubuntu Studio).
So maybe is question of:
- different version of SC;
- drivers
??