After a long time I am looking into Pdef
/Pbind
again and notice that with default s.latency
(0.2), I get considerable jitter of up to 0.5 seconds when I am doing other things on the machine like opening a helpfile in the IDE, or browsing the web.
I wonder if this common behaviour or if I am doing something wrong (apart from increasing the latency)?
Thanks in advance for your thoughts
Here’s some super simple test code that results in occasional late messages (see below)
(
SynthDef(\sine, { arg out, freq, attack=0.01, decay=1, amp=1, pan;
var snd, env, u=1;
env = EnvGen.kr(Env.perc(attack, decay), 1, doneAction:2);
snd = SinOsc.ar(freq, 0, amp * env);
OffsetOut.ar(out, Pan2.ar(snd, pan));
}).add;
)
Pdef(\a, Pbind(
\instrument, \sine,
\note, Pseq((0..11), inf),
\octave, Pseq([5, 6], inf),
\decay, 0.1,
\dur, 0.25
)).play
late 0.042076207
late 0.515819082
late 0.265819082
late 0.015819082
late 0.067156624
late 0.043025562
late 0.053317708
late 0.053405208
late 0.245571395
late 0.016904812
$ system_profiler SPSoftwareDataType SPHardwareDataType
Software:
System Software Overview:
System Version: macOS 13.6.3 (22G436)
Kernel Version: Darwin 22.6.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: XXXX
User Name: XXXX
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Time since boot: 1 day, 18 hours, 36 minutes
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro18,3
Model Number: Z15G002EZD/A
Chip: Apple M1 Pro
Total Number of Cores: 10 (8 performance and 2 efficiency)
Memory: 32 GB
System Firmware Version: 10151.61.4
OS Loader Version: 8422.141.2.700.1
Serial Number (system): XXXXX
Hardware UUID: XXXXXXXXXXXXXXXXx
Provisioning UDID: XXXXXXXXXXXXXXXXXXXX
Activation Lock Status: Enabled