Unwanted artefacts in sound

You cannot avoid this with language-triggered sequencing in realtime. I’ve described the reason here:

It can also be observed with Pbind writing:

(
{ Out.kr(~vbus1, MouseX.kr(0.000001, 0.2, 1))}.play;

Pbind(
	\instrument, \Sine2,
	\freq, 400,
	\sustain, 0.1,
	\width, ~vbus1.asMap,
	\amp, 0.3,
	\dur, 0.01
).play;
)

Only options: do it in NRT or server-side. It should be noted also that this unavoidable inaccuracy only plays a role with smooth regular sound material. For many if not most granulation applications it doesn’t play a role in perception.