I tested your code on Windows 11 via Parallels Desktop on macOS 15.7.7 and natively on macOS 15.7.7.
I hear
- clipped sound on macOS
- no clipped sound on Windows
On Ubuntu and Windows 11 (via Parallels Desktop on macOS 15.7.7) and on macOS 15.7.7, I tested the following code:
(
s.waitForBoot {
SynthDef(\intentionalPeak, { |out = 0|
var env = Env.sine.ar(Done.freeSelf) * 2 ! 2;
var signal = SinOsc.ar * env;
Out.ar(out, signal);
}).add;
s.sync;
s.record;
s.sync;
Synth(\intentionalPeak);
2.wait;
s.stopRecording;
}
)
- On macOS, I hear clipped sound.
- On Windows, I do not hear clipped sound.
- On Ubuntu, I cannot judge exactly due to sound quality, but the sound seems to be clipped.
Windows seems to do extra processing against clipping…?