<div dir="ltr">I know there's a parallel discussion about human hearing and what audio cards can get there. But I'm just trying to get one simple fact clear, that is the bit depth of audio in Pd :)<div><br></div><div>Leaving the human hearing or audio cards aside, some DAW (like Pro Tools or Ardour) do operate on audio files that are actual 32 bit resolution. I guess the idea is to keep quantization error as low as possible when mixing, normalizing, processing, filtering, mastering and everything. Then you can convert it to, say, 24 bit high quality audio afterwards for distribution - I guess this is the standard for highest digital audio these days, meaning that it's pointless to have a final audio that's higher than that, but then, 32 bit dac seem to be showing up already as chuck pointed out, but I digress. Moreover, you can also convert it to 16 bit CD quality afterwards, or even just make some MP3 or whatever... </div><div><br></div><div>Not to get into the discussion if dealing with 32 bits internally on a DAW is really important or worth the hassle (and not even getting into the deal with new 32 bit dac), the fact is that 32 bit audio exists out there for some time now. They do have this 32 bits option, or even more maybe... (not sure if they're pushing it to 64 yet, but it doesn't matter).</div><div><br></div><div>So, I always knew Pd was "32 bit", and knowing the above, I was misled to think Pd was just like Pro Tools or Ardour, that it could process audio in 32 bit. But I was thinking about it these days and it hit me that you just can't say Pd processes audio like Ardour and Pro Tools do on 32 bit precision. </div><div><br></div><div>Bottom line, you can't! </div><div><br></div><div>So this made me wonder what the heck that precision would be...</div><div><br></div><div>Chuck made me think it was a bit more than 24 bits, now it seems Miller says it's more likely to be 20 bits :) </div><div><br></div><div>cheers</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-23 12:25 GMT-03:00 Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I get 1 000 000 = 2^19.9 so a 20 bit dynamic range.<br>
<br>
I don't think A/D/A hardware ever gets better than about 110 dB dtnamic<br>
range though.<br>
<br>
cheers<br>
<span class="HOEnZb"><font color="#888888">Miller<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thu, Apr 23, 2015 at 05:20:51PM +0200, Cyrille Henry wrote:<br>
><br>
><br>
> Le 23/04/2015 16:41, Alexandre Torres Porres a écrit :<br>
> >Yep, nice indeed, I guess I learned - in short and in layman's undetailed terms - that audio output is ~24bits (a bit higher, but much higher for smaller numbers).<br>
> ><br>
> >Moreover, digital audio cards won't likely have more than 24 bit precision for many years to come, so it's just way more than enough.<br>
> The human ear is usually consider to be sensible from 0dB to 120dB, so a range of 10^(12/2) between the smallest and biggest amplitude.<br>
> i.e from 1 to 1 000 000, or from 1 to 2^13.8<br>
> so, the human ear sensitivity can be considered to be about 14 bits.<br>
> 16 bits diffusion should be enough.<br>
> 24 bits diffusion is already overkill.<br>
><br>
> cheers<br>
> c<br>
><br>
> ><br>
> >thanks<br>
> ><br>
> ><br>
> >2015-04-23 6:43 GMT-03:00 Julian Brooks <<a href="mailto:jbeezez@gmail.com">jbeezez@gmail.com</a> <mailto:<a href="mailto:jbeezez@gmail.com">jbeezez@gmail.com</a>>>:<br>
> ><br>
> >    Nice. Thanks Chuck, I learnt something.<br>
> ><br>
> >    On 22 April 2015 at 23:45, Charles Z Henry <<a href="mailto:czhenry@gmail.com">czhenry@gmail.com</a> <mailto:<a href="mailto:czhenry@gmail.com">czhenry@gmail.com</a>>> wrote:<br>
> ><br>
> >        On Wed, Apr 22, 2015 at 5:11 PM, Alexandre Torres Porres<br>
> >        <<a href="mailto:porres@gmail.com">porres@gmail.com</a> <mailto:<a href="mailto:porres@gmail.com">porres@gmail.com</a>>> wrote:<br>
> ><br>
> >        > So I start with this idea that the audio (values from -1 to 1) can't be in<br>
> >        > full 32 bit float resolution, it's less. I don't see why that is "wrong".<br>
> >        > And then, from it, my first question here was: "what is the audio resolution<br>
> >        > then?". I'm still clueless here about this answer.<br>
> >        ><br>
> >        > Moreover, is it more or less than what 24 bit audio cards handle?<br>
> ><br>
> >        Let me try:<br>
> ><br>
> >        32-bit floating point numbers have 24 bits of precision.  Always.  The<br>
> >        remaining 8 bits are just for the sign and exponent.  When the<br>
> >        amplitude of the signals decrease, you don't lose any precision in<br>
> >        floating-point.  The value of the least significant bit (LSB) gets<br>
> >        proportionally smaller.<br>
> ><br>
> >        However, the output of a 24-bit soundcard always has a fixed<br>
> >        quantization.  The LSB is always the same size.  Smaller numbers have<br>
> >        less precision.<br>
> ><br>
> >        The mismatch occurs when converting from the 32-bit floats to the<br>
> >        24-bit fixed point numbers.  Now, the smaller numbers aren't as<br>
> >        precise anymore.  They get rounded to the nearest number in the 24-bit<br>
> >        fixed point system.<br>
> ><br>
> >        So, yes, the resolution (of small numbers) in floating point (internal<br>
> >        to Pd) is finer than the resolution of those numbers when output<br>
> >        (driver/DAC).<br>
> ><br>
> >        Also, the 24-bit fixed point format is for values between -1 and 1.<br>
> >        That means that numbers between 0 and 1 have just 23 bits.  In 32-bit<br>
> >        math, the numbers between 0.5 and 1 still have 24 bits of precision<br>
> >        (the sign is held elsewhere).  That means that Pd's internal<br>
> >        resolution is finer than the soundcard resolution for all numbers<br>
> >        between -1 and 1.<br>
> ><br>
> >        Chuck<br>
> ><br>
> >        _______________________________________________<br>
> >        <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> <mailto:<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a>> mailing list<br>
> >        UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> >_______________________________________________<br>
> ><a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> >UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
> ><br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br></div>