recording at 32float/96, does it dither on export to 24bit?

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
steve
Site Admin
Posts: 80694
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: recording at 32float/96, does it dither on export to 24b

Post by steve » Wed Apr 23, 2014 2:21 pm

bomber1978 wrote:What do you mean that a stream is converted to analog (when recording in stereo) by the sound card and then back to digital before Audacity records it?, do all programmes work this way?
A common way on Windows to record what is playing on the computer is to set the recording input to "Stereo Mix". (On SoundBlaster cards this was called "What U Hear").

How that works is that the sound card plays whatever digital audio you send to it, and then the output (the "mix") of whatever is playing can be recorded.
All programs that record from "Stereo Mix" work this way.

It may be different when recording from "WASAPI loopback". I don't know and I can't test because I'm not on Windows.
There is some information here: http://manual.audacityteam.org/o/man/tu ... puter.html
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

bomber1978
Posts: 146
Joined: Fri Sep 17, 2010 8:00 am
Operating System: Please select

Re: recording at 32float/96, does it dither on export to 24b

Post by bomber1978 » Wed Apr 23, 2014 3:29 pm

Thanks...
Seeing as I am going to keep a hard copy of this internet stream on a DVD as DVD-Audio, I guess I could record it at 32bit/96, and then export the 32bit float as a 32bit PCM signed .wav, I'm pretty sure that the change from the original recording in Audacity from 32bit float to an export of 32bit PCM signed .wav won't ever use dither even with editing like normalizing?
Then I won't even need to make sure I'm using dither correctly!
*I just noticed you can't export 32bit FLAC, only 32bit as .wav, why is that?
Thanks

steve
Site Admin
Posts: 80694
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: recording at 32float/96, does it dither on export to 24b

Post by steve » Wed Apr 23, 2014 3:40 pm

bomber1978 wrote:I'm pretty sure that the change from the original recording in Audacity from 32bit float to an export of 32bit PCM signed .wav won't ever use dither even with editing like normalizing?
Dither is only applied when converting to a lower sample format (bit format), so you're correct - dither will not occur when exporting to signed 32 bit PCM.
bomber1978 wrote:*I just noticed you can't export 32bit FLAC, only 32bit as .wav, why is that?
Flac format only supports 16 bit and 24 bit.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

bomber1978
Posts: 146
Joined: Fri Sep 17, 2010 8:00 am
Operating System: Please select

Re: recording at 32float/96, does it dither on export to 24b

Post by bomber1978 » Wed Apr 23, 2014 4:45 pm

Thanks, OK I think I've got it all sorted now...
I had thought that in Preferences>Quality the "Default Sample Format" set to 24bit would mean it edited/processed at 24bit, but in fact even with Default Sample Format set to 24bit it will still edit/process at 32bit...
I think I'm a bit confused as to why you can change it to 16bit or 24bit if it's always going to process at 32bit even of you have it set to 16bit or 24bit...
I guess for reasons like I have used it to record at 24bit and export as 24bit without downsampling...

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: recording at 32float/96, does it dither on export to 24b

Post by Gale Andrews » Wed Apr 23, 2014 5:04 pm

Gale Andrews wrote:Audacity's dither is louder than the floor of the dB range. 24-bit shaped dither is at about-92 dB and 16-bit shaped dither is at about -73 dB.
Umm, it looks like those figures are a bit high, compared to the test of "fading in" absolute silence, but the dither levels can get that high in a heavy editing session.

I was fooled by playing with DTMF tones, thinking the "silence" between the tones was absolute silence, but it isn't - it's dither noise.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: recording at 32float/96, does it dither on export to 24b

Post by Gale Andrews » Wed Apr 23, 2014 5:20 pm

steve wrote:I'm not sure what happens if you used the new "WASAPI loopback" for recording, but if you recorded using "Stereo Mix" the digital stream is converted to analogue by your sound card, then converted back to digital and sent on to the recording program ("Audacity" in this case).
I've never found a convincing answer to that, but I "think" the analogue stream is captured (so converted to digital).

At any event, WASAPI captures all sounds playing through the requested device including system sounds.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: recording at 32float/96, does it dither on export to 24b

Post by Gale Andrews » Wed Apr 23, 2014 5:35 pm

bomber1978 wrote:I had thought that in Preferences>Quality the "Default Sample Format" set to 24bit would mean it edited/processed at 24bit, but in fact even with Default Sample Format set to 24bit it will still edit/process at 32bit...
I think I'm a bit confused as to why you can change it to 16bit or 24bit if it's always going to process at 32bit even of you have it set to 16bit or 24bit...
I guess for reasons like I have used it to record at 24bit and export as 24bit without downsampling...
Yes the Default Sample Format refers to the default for newly created audio (recording or import or generation).

All internal processing is done in 32-bit float regardless of the sample format. There are many reasons. The computer calculations are faster than when dealing with an integer format, and you can preserve quality if repeatedly applying effects that change the volume level.

Also because 32-bit float can store audio above the "clipping" level of 0 dB, if an effect pushes audio above that level, you can always amplify down below 0 dB without losing the audio that was above 0 dB.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

bomber1978
Posts: 146
Joined: Fri Sep 17, 2010 8:00 am
Operating System: Please select

Re: recording at 32float/96, does it dither on export to 24b

Post by bomber1978 » Wed Apr 23, 2014 6:23 pm

Gale Andrews wrote:
bomber1978 wrote:I had thought that in Preferences>Quality the "Default Sample Format" set to 24bit would mean it edited/processed at 24bit, but in fact even with Default Sample Format set to 24bit it will still edit/process at 32bit...
I think I'm a bit confused as to why you can change it to 16bit or 24bit if it's always going to process at 32bit even of you have it set to 16bit or 24bit...
I guess for reasons like I have used it to record at 24bit and export as 24bit without downsampling...
Yes the Default Sample Format refers to the default for newly created audio (recording or import or generation).

All internal processing is done in 32-bit float regardless of the sample format. There are many reasons. The computer calculations are faster than when dealing with an integer format, and you can preserve quality if repeatedly applying effects that change the volume level.

Also because 32-bit float can store audio above the "clipping" level of 0 dB, if an effect pushes audio above that level, you can always amplify down below 0 dB without losing the audio that was above 0 dB.


Gale
Didn't know 32bit float can store above clipping level.... Not sure I understand all that, I think I'll keep it safe and make sure my 32bit recording volume stays below 0dB and then just normalize the exported 32 bit file to -0.01dB.

Bye the way I have 2 songs that I would like to add to the 60minute recording of the show I will be recording at 32/96 from the internet stream, however the 2 tracks I would like to add are standard 16bit/44.1 CD tracks, so I plan to simply upconvert the 16bit/44.1 CD tracks to 32bit/96 so they can be add to my "32/96 internet stream recording" so I can compile both onto a DVD-Audio hard copy.
I'm pretty sure there is no harm in upconverting 16bit/44.1 to 32bit/96?, I know it won't improve the sound, but I want to be sure that this will not audibly damage the file in any way will it?

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: recording at 32float/96, does it dither on export to 24b

Post by Gale Andrews » Wed Apr 23, 2014 6:44 pm

bomber1978 wrote:I have 2 songs that I would like to add to the 60minute recording of the show I will be recording at 32/96 from the internet stream
Strictly speaking, almost certainly you will be recording at 16-bit or 24-bit upconverted to 32-bit resolution.
bomber1978 wrote:however the 2 tracks I would like to add are standard 16bit/44.1 CD tracks, so I plan to simply upconvert the 16bit/44.1 CD tracks to 32bit/96 and that will be satisfactory to add to my "32/96 recording" so I can make a DVD-Audio hard copy.
I'm pretty sure there is no harm in upconverting 16bit/44.1 to 32bit/96?, I know it won't improve the sound, but I want to be sure that this will not audibly damage the file in any way will it?
If Audacity is set to default 32-bit float sample format then when you import the 16-bit 44100 Hz WAV files ripped from the CD, Audacity will import them at 32-bit float resolution.

If your Audacity project rate is set to 96000 Hz then yes the CD audio tracks will be upsampled to that rate when you export the mix. You might just as well do this in Audacity - the "libsoxr" resampling library Audacity uses is of very high quality.

Resampling is always technically lossy, though you don't lose high frequencies when upsampling to a higher rate and you won't hear a problem when upsampling in Audacity.

If you really want to get paranoid about this :D then assuming you are on Windows Vista or later you should be choosing Windows DirectSound host in Audacity's Device Toolbar and setting both Exclusive Mode boxes "on" in the Advanced tab for stereo mix in Windows "Sound". This will minimise the number of resamplings going on in Windows. See http://wiki.audacityteam.org/wiki/Windo ... mple_rates .


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

bomber1978
Posts: 146
Joined: Fri Sep 17, 2010 8:00 am
Operating System: Please select

Re: recording at 32float/96, does it dither on export to 24b

Post by bomber1978 » Thu Apr 24, 2014 1:06 am

Gale Andrews wrote:
bomber1978 wrote:I have 2 songs that I would like to add to the 60minute recording of the show I will be recording at 32/96 from the internet stream
Strictly speaking, almost certainly you will be recording at 16-bit or 24-bit upconverted to 32-bit resolution.
When you say "Strictly speaking, almost certainly you will be recording at 16-bit or 24-bit upconverted to 32-bit resolution.", I think you are just refering to the fact that the actual bit depth of the stream the website is streaming at would be 16bit or 24bit and not actually 32bit which I'm recording at?, I think this is what you mean?
Gale Andrews wrote:If you really want to get paranoid about this :D then assuming you are on Windows Vista or later you should be choosing Windows DirectSound host in Audacity's Device Toolbar and setting both Exclusive Mode boxes "on" in the Advanced tab for stereo mix in Windows "Sound". This will minimise the number of resamplings going on in Windows. See http://wiki.audacityteam.org/wiki/Windo ... mple_rates .
I'm just trying to learn more about how this all works rather than being 'paranoid about the quality', as I know realistically there's actually really no reason to record an internet stream at 32/96!

I'm on Windows 7 Pro, and can not find Exclusive Mode boxes in the Advanced tab for stereo mix in Windows Sound, in fact I can not even see an "Advanced" tab.
Do you mean like Start>Control Panel>Hardware and Sound>Sound:Adjust System Volume / Change System Sounds / Manage Audio Devices ?
There doesn't appear to be any advanced tab there, so I presume Windows 7 Pro doesn't have anything like that?
Last edited by bomber1978 on Fri Apr 24, 2015 4:33 pm, edited 2 times in total.
Reason: Fixed quote tags

Post Reply