The OS seems to be doing the clipping. Windows and OSX don't seem to clip while linux, at least with alsa, does.
J
On 10/19/2017 11:21 AM, Nicolas Danet wrote:
Ok, thus if it there's a clipping it is "after" Pd (or at the I/O API level). Thanks for the confirmation.
----- Mail d'origine ----- De: Claude Heiland-Allen claude@mathr.co.uk À: pd-list@lists.iem.at Envoyé: Thu, 19 Oct 2017 17:10:12 +0200 (CEST) Objet: Re: [PD] Is Pd clip the audio output?
On 19/10/17 15:56, Christof Ressi wrote:
-1 to 1 is the maximum range for floating point audio samples. there's nothing else you can do than clipping if you exceed that range.
A simple test on Linux with JACK shows that Pd doesn't clip audio that exceeds -1 to 1:
https://mathr.co.uk/tmp/jack-no-clip.png screenshot
Other API may be different, and the driver may clip (or do other dynamics processing) before sending to the hardware.
Von: "Nicolas Danet" nicolas.danet@free.fr In the "A02.amplitude.pd" example it is claimed that:
"Amplitudes of audio signals can have any reasonable range, but when you output a signal via the dac~ object, the samples should range between -1 and +1. Values out of that range will be clipped."
Is that still true in current version (Pd-0.48-0)?
I tested with a less current version:
$ pd -version Pd-0.47.1 ("") compiled for Debian (0.47.1-3) on 2016/11/28 at 20:56:10 UTC
Claude