TempoClock, quant, timing issues

Hi @dkmayer and thanks for you reply.
Did you tried my code test? Have you obtained some different results?

Back to your reply: uhm, don’t know if it is exactly my case. Anyway, after reading it, I made another test: I’ve changed the default quantization for Pdefs:

Pdef.defaultQuant = 4;

I’ve noticed that this way, every time I launch a new “bar clip”, it will start exactly where I’m expecting (which is a different behaviors from before).

It seems the argument quant, used when the play message is sent to the Pdefs, is not working or, at least, not working every time.

What’s the difference between the two pieces of code below?
Why their musical output are different?
It should not be assumed that they will return the same output?

This is the code that is not working for me:

Pdef(\bass, ~bass_barA).play(quant:4);

(
Pdef(\bass, ~bass_barB).play(quant:4);
Pdef(\pads, ~pads_barB).play(quant:4);
)

(
Pdef(\bass, ~bass_barC).play(quant:4);
Pdef(\pads, ~pads_barC).play(quant:4);
)

(
Pdef(\bass, ~bass_barA).play(quant:4);
Pdef(\pads).stop;
)

this is the code that is working:

Pdef.defaultQuant = 4;
Pdef(\bass, ~bass_barA).play();

(
Pdef(\bass, ~bass_barB).play();
Pdef(\pads, ~pads_barB).play();
)

(
Pdef(\bass, ~bass_barC).play();
Pdef(\pads, ~pads_barC).play();
)

(
Pdef(\bass, ~bass_barA).play();
Pdef(\pads).stop;
)

Why?

Please don’t misunderstand me, what I’m experiencing are not subtle latencies or misalignments that are almost imperceptible.
Bass and pads are always syncronized with the metronome, but sometimes one or both of them go off tempo. They loose their alignement in terms of quarter notes so that, for example, bass notes are not musically coherent with the chords.

What is wrong with the quant argument method ( Pdef(\bass).play(quant:4); )?
If is there a problem with it, it might be a pity because it means we are forced to use the default quantization for Pdefs (it seems to work), and we no longer have the ability to assign different quantization to different Pdefs :frowning:

Any idea?
thanks so much