<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 1, 2014 at 2:03 PM, Martin Peach <span dir="ltr">&lt;<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@sympatico.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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&#39;s no way a DAC can output beyond its own full scale except momentarily while it&#39;s settling to a value inside its range.<br>

The scaling has to be done before the DAC.<br>
<br>
You just can&#39;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?<br></blockquote><div><br></div><div>The DAC can&#39;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.</div>
<div><br></div><div>I haven&#39;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.</div>
<div><br></div><div>There are limits - The Stooges &#39;Raw Power&#39; CD is so clipped that even high end DACs with lots of DSP have no hope there!</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

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.<br>
</blockquote><div><br></div><div>It&#39;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 &#39;soft clipping&#39; algorithm perhaps much like zexy&#39;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.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Martin<div class="im"><br>
<br>
<br>
On 2014-01-01 13:50, Chris Clepper wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Nope, the DAC can freely construct intersample peaks as it sees fit and<br>
those can easily exceed 0 dBFS.  It has been common practice in the<br>
industry for more than a decade to reconstruct clipped samples well<br>
above 0 dBFS - partially to make up for shitty mixing and mastering<br>
prevalent in music, and also because it&#39;s the right way to do it.<br>
<br>
16 bits full scale and 24 bits full scale are the same 0dBFS signal.<br>
  The bits are added at the bottom not the top.<br>
<br>
<br>
<br>
On Wed, Jan 1, 2014 at 1:34 PM, Martin Peach &lt;<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@sympatico.ca</a><br></div><div class="im">
&lt;mailto:<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@<u></u>sympatico.ca</a>&gt;&gt; wrote:<br>
<br>
    On 2013-12-31 19:32, Chris Clepper wrote:<br>
<br>
        It&#39;s very, very easy to avoid any sort of clipping processing by<br>
        using<br>
        hardware with drivers that don&#39;t have any!  Avid, Apogee, MOTU,<br>
        RME, and<br>
        many others have bit transparent OSX CoreAudio drivers.<br>
<br>
        Also, any DAC worth it&#39;s using can reconstruct far beyond 0dBFS<br>
        without<br>
        distortion, so hearing volume increase past -1..1 in software is not<br>
        surprising.  I recall the ADI 1955 and equivalent TI part<br>
        putting out<br>
        +12dBFS or something ridiculous, but those ain&#39;t Wolfson low power<br>
        headphone codecs neither!<br>
<br>
<br>
    A DAC can only go to 0dBFS by definition. If it appears to go beyond<br>
    that then something is scaling the input to be less than full scale<br>
    at &quot;full scale&quot;.<br>
    For instance a 24-bit DAC could be sent 16 16-bit full-scale streams<br>
    and not clip. Only if 16-bits is considered &quot;full scale&quot; does that<br>
    make it +12dBFS.<br>
<br>
    Martin<br>
<br>
<br>
<br></div>
    ______________________________<u></u>___________________<br>
    <a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> &lt;mailto:<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a>&gt; mailing list<br>
    UNSUBSCRIBE and account-management -&gt;<br>
    <a href="http://lists.puredata.info/__listinfo/pd-list" target="_blank">http://lists.puredata.info/__<u></u>listinfo/pd-list</a><br>
    &lt;<a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a>&gt;<div class="im"><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div></div>