Ouch. I guess alot of us don't have serious projects :D (Out of curiosity, does Max do soft clipping also?)
On Dec 29, 2013, at 10:20 PM, pd-list-request@iem.at wrote:
From: Miller Puckette msp@ucsd.edu Subject: Re: [PD] headroom in Pd Date: December 29, 2013 at 6:42:00 PM GMT+1 To: Martin Peach martin.peach@sympatico.ca Cc: IOhannes m zmölnig zmoelnig@iem.at, pd-list@iem.at
This is frightening - if I were a musician reading this I'd be frightened to ever use Appe software in a serious project.
Dan Wilcox @danomatika danomatika.com robotcowboy.com
On 31/12/13 08:30, Dan Wilcox wrote:
Ouch. I guess alot of us don't have serious projects :D (Out of curiosity, does Max do soft clipping also?)
the point was that OSX was messing with the sound between the software, presumably any software, and the audio output ... which may perhaps be called a feature while listening to songs in iTunes but is a big worry if you are trying to use the system seriously as a musician. It is a problem that comes up on this list from time to time, I don't recall any reply saying it could be bypassed or turned off.
Simon
It's very, very easy to avoid any sort of clipping processing by using hardware with drivers that don't have any! Avid, Apogee, MOTU, RME, and many others have bit transparent OSX CoreAudio drivers.
Also, any DAC worth it's using can reconstruct far beyond 0dBFS without distortion, so hearing volume increase past -1..1 in software is not surprising. I recall the ADI 1955 and equivalent TI part putting out +12dBFS or something ridiculous, but those ain't Wolfson low power headphone codecs neither!
On Tue, Dec 31, 2013 at 6:50 PM, Simon Wise simonzwise@gmail.com wrote:
On 31/12/13 08:30, Dan Wilcox wrote:
Ouch. I guess alot of us don't have serious projects :D (Out of curiosity, does Max do soft clipping also?)
the point was that OSX was messing with the sound between the software, presumably any software, and the audio output ... which may perhaps be called a feature while listening to songs in iTunes but is a big worry if you are trying to use the system seriously as a musician. It is a problem that comes up on this list from time to time, I don't recall any reply saying it could be bypassed or turned off.
Simon
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
On 01/01/14 11:32, Chris Clepper wrote:
It's very, very easy to avoid any sort of clipping processing by using hardware with drivers that don't have any! Avid, Apogee, MOTU, RME, and many others have bit transparent OSX CoreAudio drivers.
Also, any DAC worth it's using can reconstruct far beyond 0dBFS without distortion, so hearing volume increase past -1..1 in software is not surprising. I recall the ADI 1955 and equivalent TI part putting out +12dBFS or something ridiculous, but those ain't Wolfson low power headphone codecs neither!
So it is the driver for the built-in audio output that is adding the feature/problem? I rarely use OSX these days, just an old setup with a G4 mac mini and a MOTU that hasn't been updated for years but still does its job nicely.
Simon
It's not even clear if there is some sort of soft clipping at play in Alexandre's case, but some of the Apple hardware has used such either in the CoreAudio driver or in the hardware codec itself. As I recall the main reasoning was to prevent hard clipping from damaging the tiny laptop speakers and some models it was bypassed when headphones are plugged in.
Personally, I test all mixes and masters in iTunes using the headphone out of a Mac Mini. If it sounds bad there I don't blame the driver though.
On Tue, Dec 31, 2013 at 8:00 PM, Simon Wise simonzwise@gmail.com wrote:
On 01/01/14 11:32, Chris Clepper wrote:
It's very, very easy to avoid any sort of clipping processing by using hardware with drivers that don't have any! Avid, Apogee, MOTU, RME, and many others have bit transparent OSX CoreAudio drivers.
Also, any DAC worth it's using can reconstruct far beyond 0dBFS without distortion, so hearing volume increase past -1..1 in software is not surprising. I recall the ADI 1955 and equivalent TI part putting out +12dBFS or something ridiculous, but those ain't Wolfson low power headphone codecs neither!
So it is the driver for the built-in audio output that is adding the feature/problem? I rarely use OSX these days, just an old setup with a G4 mac mini and a MOTU that hasn't been updated for years but still does its job nicely.
Simon
I have rem's multiface ii by the way, it says it handles a headrom of 13 db or something, don't really know what it means. It'llbe a while 'til I check anyway, I'm at a very nice beach in Brasil andI just dipped myself into the atlantic ocean
LoveTo You All!!!
2013/12/31 Chris Clepper cgclepper@gmail.com
It's very, very easy to avoid any sort of clipping processing by using hardware with drivers that don't have any! Avid, Apogee, MOTU, RME, and many others have bit transparent OSX CoreAudio drivers.
Also, any DAC worth it's using can reconstruct far beyond 0dBFS without distortion, so hearing volume increase past -1..1 in software is not surprising. I recall the ADI 1955 and equivalent TI part putting out +12dBFS or something ridiculous, but those ain't Wolfson low power headphone codecs neither!
On Tue, Dec 31, 2013 at 6:50 PM, Simon Wise simonzwise@gmail.com wrote:
On 31/12/13 08:30, Dan Wilcox wrote:
Ouch. I guess alot of us don't have serious projects :D (Out of curiosity, does Max do soft clipping also?)
the point was that OSX was messing with the sound between the software, presumably any software, and the audio output ... which may perhaps be called a feature while listening to songs in iTunes but is a big worry if you are trying to use the system seriously as a musician. It is a problem that comes up on this list from time to time, I don't recall any reply saying it could be bypassed or turned off.
Simon
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 2013-12-31 19:32, Chris Clepper wrote:
It's very, very easy to avoid any sort of clipping processing by using hardware with drivers that don't have any! Avid, Apogee, MOTU, RME, and many others have bit transparent OSX CoreAudio drivers.
Also, any DAC worth it's using can reconstruct far beyond 0dBFS without distortion, so hearing volume increase past -1..1 in software is not surprising. I recall the ADI 1955 and equivalent TI part putting out +12dBFS or something ridiculous, but those ain't Wolfson low power headphone codecs neither!
A DAC can only go to 0dBFS by definition. If it appears to go beyond that then something is scaling the input to be less than full scale at "full scale". For instance a 24-bit DAC could be sent 16 16-bit full-scale streams and not clip. Only if 16-bits is considered "full scale" does that make it +12dBFS.
Martin
Nope, the DAC can freely construct intersample peaks as it sees fit and those can easily exceed 0 dBFS. It has been common practice in the industry for more than a decade to reconstruct clipped samples well above 0 dBFS - partially to make up for shitty mixing and mastering prevalent in music, and also because it's the right way to do it.
16 bits full scale and 24 bits full scale are the same 0dBFS signal. The bits are added at the bottom not the top.
On Wed, Jan 1, 2014 at 1:34 PM, Martin Peach martin.peach@sympatico.cawrote:
On 2013-12-31 19:32, Chris Clepper wrote:
It's very, very easy to avoid any sort of clipping processing by using hardware with drivers that don't have any! Avid, Apogee, MOTU, RME, and many others have bit transparent OSX CoreAudio drivers.
Also, any DAC worth it's using can reconstruct far beyond 0dBFS without distortion, so hearing volume increase past -1..1 in software is not surprising. I recall the ADI 1955 and equivalent TI part putting out +12dBFS or something ridiculous, but those ain't Wolfson low power headphone codecs neither!
A DAC can only go to 0dBFS by definition. If it appears to go beyond that then something is scaling the input to be less than full scale at "full scale". For instance a 24-bit DAC could be sent 16 16-bit full-scale streams and not clip. Only if 16-bits is considered "full scale" does that make it +12dBFS.
Martin
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
On 2014-01-01 19:50, Chris Clepper wrote:
Nope, the DAC can freely construct intersample peaks as it sees fit and those can easily exceed 0 dBFS. It has been common practice in the industry for more than a decade to reconstruct clipped samples well above 0 dBFS - partially to make up for shitty mixing and mastering prevalent in music, and also because it's the right way to do it.
+1
nevertheless you cannot send digital values to the DAC that exceed 0dBFS. the intersample peaks are *purely* analog. "FS" stands for "full scale" and refers to the full range of the digianl fix-point values. thus - by definition - 0dBFS only refers to digital values, and can never be exceeded. however on the analog side, the nominal 0dB can easily be exceeded in the reconstruction.
btw, zexy's [limiter~] tries to take intersample peaks into account by upsampling the signal prior to limiting,... so if you use it to limit between -1..+1, then the reconstructed analog signal should not exceed the nominal analog output range. (for practical reasons, upsampling is limited, so in some borderline cases you could still construct a signal that exceeds the 0dB analog)
gfmadsr IOhannes
Yes, of course the signal out of the DAC is purely analog. The signal is referenced to 0dBFS on the digital side and also something like dBu or dBv on the analog side (although it varies from part to part). I should have been clearer in stating this. :)
But the main point is that there are signals beyond all 1s in the data sent to the DAC if clipping exists. This is confusing to many because the digital math as commonly taught typically only refers to 'inside the box'. I leave this exception out of any workshop or uni course because of the confusion, but it should be known more widely.
Sounds like the zexy [limiter~] is better than many commercial plugins that don't upsample! As we know, the hard clip can create some very nasty aliasing artifacts and when done in the box there is no way to undo that damage.
Best practice is still to keep the peaks away from full scale even if using a very good DAC that can del with clipping well.
On Wed, Jan 1, 2014 at 2:03 PM, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 2014-01-01 19:50, Chris Clepper wrote:
Nope, the DAC can freely construct intersample peaks as it sees fit and those can easily exceed 0 dBFS. It has been common practice in the industry for more than a decade to reconstruct clipped samples well
above 0
dBFS - partially to make up for shitty mixing and mastering prevalent in music, and also because it's the right way to do it.
+1
nevertheless you cannot send digital values to the DAC that exceed 0dBFS. the intersample peaks are *purely* analog. "FS" stands for "full scale" and refers to the full range of the digianl fix-point values. thus - by definition - 0dBFS only refers to digital values, and can never be exceeded. however on the analog side, the nominal 0dB can easily be exceeded in the reconstruction.
btw, zexy's [limiter~] tries to take intersample peaks into account by upsampling the signal prior to limiting,... so if you use it to limit between -1..+1, then the reconstructed analog signal should not exceed the nominal analog output range. (for practical reasons, upsampling is limited, so in some borderline cases you could still construct a signal that exceeds the 0dB analog)
gfmadsr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I can see how a filter circuit following a DAC can swing more than the DAC for example if two successive samples are full-scale, but there's no way a DAC can output beyond its own full scale except momentarily while it's settling to a value inside its range. The scaling has to be done before the DAC.
You just can't reconstruct a clipped signal unless the clipping is very mild or the signal is very simple, like a sine wave. What if the signal is +12dBFS white noise?
I meant that if you take 16 bits to be full-scale but you have a 24-bit DAC you _could_ use the 16 LSBs of the DAC as full scale, then you have a lot of headroom but your signal to noise ratio is not as good, and maybe something like this is happening in the default MacOS headphone driver.
Martin
On 2014-01-01 13:50, Chris Clepper wrote:
Nope, the DAC can freely construct intersample peaks as it sees fit and those can easily exceed 0 dBFS. It has been common practice in the industry for more than a decade to reconstruct clipped samples well above 0 dBFS - partially to make up for shitty mixing and mastering prevalent in music, and also because it's the right way to do it.
16 bits full scale and 24 bits full scale are the same 0dBFS signal. The bits are added at the bottom not the top.
On Wed, Jan 1, 2014 at 1:34 PM, Martin Peach <martin.peach@sympatico.ca mailto:martin.peach@sympatico.ca> wrote:
On 2013-12-31 19:32, Chris Clepper wrote: It's very, very easy to avoid any sort of clipping processing by using hardware with drivers that don't have any! Avid, Apogee, MOTU, RME, and many others have bit transparent OSX CoreAudio drivers. Also, any DAC worth it's using can reconstruct far beyond 0dBFS without distortion, so hearing volume increase past -1..1 in software is not surprising. I recall the ADI 1955 and equivalent TI part putting out +12dBFS or something ridiculous, but those ain't Wolfson low power headphone codecs neither! A DAC can only go to 0dBFS by definition. If it appears to go beyond that then something is scaling the input to be less than full scale at "full scale". For instance a 24-bit DAC could be sent 16 16-bit full-scale streams and not clip. Only if 16-bits is considered "full scale" does that make it +12dBFS. Martin _________________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list>
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Wed, Jan 1, 2014 at 2:03 PM, Martin Peach martin.peach@sympatico.cawrote:
I can see how a filter circuit following a DAC can swing more than the DAC for example if two successive samples are full-scale, but there's no way a DAC can output beyond its own full scale except momentarily while it's settling to a value inside its range. The scaling has to be done before the DAC.
You just can't reconstruct a clipped signal unless the clipping is very mild or the signal is very simple, like a sine wave. What if the signal is +12dBFS white noise?
The DAC can't really discriminate based on the aural complexity of a signal. A peak with N successive clipped samples has a reconstructed value above full scale and the DAC will attempt to produce that signal. Since all of the info above full scale is lost, the reconstruction is just a guess whether the input is a sine or kick drum or random noise. The sine wave has a pretty clearly correct reconstruction while a percussive sound might not. A common side effect of doing extreme declipping using something like iZotope in the box is a softening of transients. Not surprising.
I haven't looked too deeply into how various DACs go about their process, but some of the higher end parts have pretty decent DSP on board or even allow external SHARC chips to do the work. I do know people that make high end mastering converters who know quite a lot about this.
There are limits - The Stooges 'Raw Power' CD is so clipped that even high end DACs with lots of DSP have no hope there!
I meant that if you take 16 bits to be full-scale but you have a 24-bit DAC you _could_ use the 16 LSBs of the DAC as full scale, then you have a lot of headroom but your signal to noise ratio is not as good, and maybe something like this is happening in the default MacOS headphone driver.
It's not clear what is happening in the Apple codec driver, but the Core Audio doc linked earlier gives a pretty good idea that they are doing a 'soft clipping' algorithm perhaps much like zexy's [limiter~]. I have seen some Wolfson codec datasheets that mention doing the soft clip in the hardware and those parts were aimed at mobile phones and the like. The intent is to prevent hard clipping from reaching the puny internal speakers in such devices and not an aesthetic choice.
Martin
On 2014-01-01 13:50, Chris Clepper wrote:
Nope, the DAC can freely construct intersample peaks as it sees fit and those can easily exceed 0 dBFS. It has been common practice in the industry for more than a decade to reconstruct clipped samples well above 0 dBFS - partially to make up for shitty mixing and mastering prevalent in music, and also because it's the right way to do it.
16 bits full scale and 24 bits full scale are the same 0dBFS signal. The bits are added at the bottom not the top.
On Wed, Jan 1, 2014 at 1:34 PM, Martin Peach <martin.peach@sympatico.ca mailto:martin.peach@sympatico.ca> wrote:
On 2013-12-31 19:32, Chris Clepper wrote: It's very, very easy to avoid any sort of clipping processing by using hardware with drivers that don't have any! Avid, Apogee, MOTU, RME, and many others have bit transparent OSX CoreAudio drivers. Also, any DAC worth it's using can reconstruct far beyond 0dBFS without distortion, so hearing volume increase past -1..1 in software is
not surprising. I recall the ADI 1955 and equivalent TI part putting out +12dBFS or something ridiculous, but those ain't Wolfson low power headphone codecs neither!
A DAC can only go to 0dBFS by definition. If it appears to go beyond that then something is scaling the input to be less than full scale at "full scale". For instance a 24-bit DAC could be sent 16 16-bit full-scale streams and not clip. Only if 16-bits is considered "full scale" does that make it +12dBFS. Martin _________________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list>
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list