Audio files and pattern syncronization

here-s my attempt at explaining it.

p.reset.play(t, quant:Quant(1,0,0));

here you play your pattern with 78 bpm (because t = TempoClock.new(78/60);). The Sound-Events you hear don-t happen as soon as possible, but at the rhythmically right time. The “right time” is calculated using Server.default.latency.

x = Synth(\test, [\buf, ~audiofile, \amp, 0.5]);

here you play your Audio-File. You hear it start as soon as your Computer is ready to produce the sound. Whenever that may be it probably will not be at the same time as the start of your pattern. Using s.bind {} the sound can happen at a time that takes Server.default.latency into account, and so can be rhythmically in sync with other sound events.

(
t = TempoClock.new(78/60);
s.bind { Synth(\test, [\buf, ~audiofile, \amp, 0.5]) };
p.reset.play(t, quant:Quant(1,0,0));
)

this thread probably explains it better: