Quality loss exporting .wav and reloading into audacity?

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
steve
Site Admin
Posts: 81629
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Quality loss exporting .wav and reloading into audacity?

Post by steve » Mon Jan 07, 2013 12:14 am

noneleft wrote:This leads me to (hopefully) my final question: Is there any reason NOT to use 32 bit wav as an export format for work in progress, other than file size?
File size is the main "down side" of 32 bit float.
The (only?) other downside is that few audio programs support 32 bit float format, but that is irrelevant for "work in progress" because Audacity does support 32 bit float format.
noneleft wrote: If this can be successively loaded and exported with no accumulation of noise, or any other degradation, then it seems (at from a quality perspective) audacity projects do not add anything useful, but rather complicate matters (seeing as they proliferate their own directory structures and are not readable or as portable as wav files, and are more susceptible to corruption).
If you are working with a simple one track project, I'd recommend going with WAV format (for the reasons that you state).
For more complex projects, the Audacity Project format (AUP file and _data folder) has the advantage that it can support multiple tracks, label tracks, track pan and gain and envelopes.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Quality loss exporting .wav and reloading into audacity?

Post by kozikowski » Mon Jan 07, 2013 3:03 am

Just before we drift from this too much, the reason a tiny dither signal is added is to keep the bit conversion distortion from going up. When you process from higher bit density to a lower one, the musical accuracy goes down. You could have musical tones that just don't convert well -- or convert with rolling distortion. It's not just "stop using dither and all your problems are over." They're just different, more serious problems. Dither means it's difficult for any conversion error to exist long enough to be heard.

32 bit floating is not nearly as common a file type as 16-bit is. If you sent a 32-float sound file to your cousin in Philadelphia and they didn't have Audacity, it would be something of a crap shoot whether or not they could play it.

Music CD format is 44100, 16-bit, Stereo and basic digital television is 48000, 16-bit, Stereo. 16-bit is not a dreadful bit depth to use, but you may decide to go higher for production and personal use. I don't know anybody who shoots songs and music in less than 24, but many of them have no idea why. I believe Windows has trouble with 24 bit, so that can get you into trouble, too.

Koz

waxcylinder
Forum Staff
Posts: 14685
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Quality loss exporting .wav and reloading into audacity?

Post by waxcylinder » Mon Jan 07, 2013 3:27 pm

The bottom line here for the relatively straightforward tape transfers is:

1) do all your recording and editing in 32-bit 44.1KHz stereo

2) If you need to store your work while you are working on a particular project - the Save an Audacity Project - this wiil be lossless and you won't get dither applied (as you have probably worked out by now).

3) When it comes to final production then Export to 16-bit 44.1 kHz PCM stereo WAV (can be used to make CDS and will play on most players). Dithering is applied by default here - you can turn it off in Preferences - I don't, by choice I use "triangular" dithering. This is the only stage in this simple process when you will get dithering.

Personally I normally never bother saving Audacity projects for this type of task, I just record into a fresh empty project do all the processing and export 16-bit WAVS at the end and then close the project without saving.

The other key part of my workflow is to make backup copies of these production WAVs (before I load them into iTunes and convert them to AAC for my iPod).

If you are a purist and very thorough (and you have plenty of disk space) you may want to make the optional step of immediately after capture Export a 32-bit WAV of the raw unprocessed recording (and back it up). That way you can always go back to it later for re-processing if required.

You might find this workflow interesting: http://manual.audacityteam.org/o/man/sa ... ation.html
although it is written around LP transfers most of it applies to tape transfers too.

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

waxcylinder
Forum Staff
Posts: 14685
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Quality loss exporting .wav and reloading into audacity?

Post by waxcylinder » Mon Jan 07, 2013 3:31 pm

A couple of other bits of advice relevant to tape transfers:

1) Do clean the tape deck transport mechanism, the capstan and the rubber pinch roller that presses the tape to the capstan - over the years they tend to accumulate oxide dust that is shed from tape usage. Don't use alcohol-based solvents on the rubber parts!

2) Befeore recording, wind the tape completelt end-to-end and nack again - this evens out the tension in a tape, particularly if it has been stored for a long period.

See this page in the Audacity Wiki: http://wiki.audacityteam.org/wiki/Recor ... m_Cassette

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

waxcylinder
Forum Staff
Posts: 14685
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Quality loss exporting .wav and reloading into audacity?

Post by waxcylinder » Mon Jan 07, 2013 3:41 pm

noneleft wrote: ... it seems (at from a quality perspective) audacity projects do not add anything useful, but rather complicate matters (seeing as they proliferate their own directory structures and are not readable or as portable as wav files, and are more susceptible to corruption).
It's not really a matter of making it "complicated" it's more a matter of making it "fast". Audacity chops the audio into lots of little segments to make its processing work at an acceptable speed.

But you are right in observing that this makes them useful only to Audacity - they can even be quite hard to ship to other users unless you know what you are doing. See this page in the manual: http://manual.audacityteam.org/o/man/au ... jects.html

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

noneleft
Posts: 22
Joined: Sun Jan 23, 2011 11:52 pm
Operating System: Please select

Re: Quality loss exporting .wav and reloading into audacity?

Post by noneleft » Mon Jan 07, 2013 11:20 pm

Thank you Steve, Koz. and Wax. for your further answers. The fog surrounding the purpose of audacity projects files, and the drawbacks of 16 bit wav has cleared significantly from my mind, and for that I am very grateful. Based on your information, I will replace all use of 16 bit wav format (which I was using for masters, and backups) with 32 bit wav format. Disk space is no concern and I mostly do not need to manipulate multi-track projects, so with masters and W.I.P. in 32 bit wav, I can cut 'disposable' mp3 and 16 bit CD versions for real world listening, and recut them indefinitely into the future from the master 32 bit wav, without loosing quality regardless of how many times I import or export, and I don't need to retain any audacity project files to achieve that 100% lossless quality.

One question on saving 32 bit wav - I noticed that when I export to "'other uncompressed files" and look in the options dialogue, with 'Header:' field set to "WAV (Microsoft)", there are at least 2 different 32 bit options I can choose for the Encoding: field -

32 bit float
Signed 32 bit PCM

....which of these two would you recommend, or does it make no difference to quality during import/export cycles?
Can I assume with either of these 32 bit wav encodings I will get totally lossless import/exports and there will be no dither applied (or do I have to change a setting to switch off dither?). If so, which would you guess is the most likely to be readable by IT sytems into the future ? Thank you for all your information and patience.

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Quality loss exporting .wav and reloading into audacity?

Post by kozikowski » Mon Jan 07, 2013 11:43 pm

Audacity works in 32-float. Straight PCM (pulse code modulation) offers a fixed collection of digital bits and sound levels and it's up to you to fit your show into that. Float, in general, means the system will assign bits and levels to you wherever they're needed. Koz

noneleft
Posts: 22
Joined: Sun Jan 23, 2011 11:52 pm
Operating System: Please select

Re: Quality loss exporting .wav and reloading into audacity?

Post by noneleft » Tue Jan 08, 2013 8:29 am

O
kozikowski wrote:Audacity works in 32-float. Straight PCM (pulse code modulation) offers a fixed collection of digital bits and sound levels and it's up to you to fit your show into that. Float, in general, means the system will assign bits and levels to you wherever they're needed. Koz
So, back to my quesion then - is Wav 32 float format superior to MS PCM 32bit wav for saving audacity projects (if they are still going to be worked on again and will be opened, processed, and re-exported repeatedly)? Presumably either produces the same size files, but do you loose information on export to PCM compared to float due to the fact it is not a *floating* format? What if you open export to float, open again, export to pcm etc. repeatedly between the two, will the two translate into each other perfectly no matter how many times the export is performed?

noneleft
Posts: 22
Joined: Sun Jan 23, 2011 11:52 pm
Operating System: Please select

Re: Quality loss exporting .wav and reloading into audacity?

Post by noneleft » Tue Jan 08, 2013 11:20 am

Also, my other question - is dither automatically off when exporting to a 32 bit wav file, or do I need to switch it off manually in the settings.
Logic would suggest it's automatic, because there would be nothing to dither if audacity works in 32 bit and the export is to a 32 bit format.

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

Re: Quality loss exporting .wav and reloading into audacity?

Post by steve » Tue Jan 08, 2013 4:04 pm

"32 bit float" is the format that Audacity uses internally. It is an extremely high quality format.

If you export as "32 bit float" (WAV or AIFF) then the exported file will be identical to the Audacity track.
You do not need to turn off dither.
Export > Import > Export > Import > Export > Import > .... as many times as you like in "32 bit float" format and there is no change to the audio data. The copy is perfect.

Dither is only applied when exporting to a lower bit format than the original. As Audacity works in 32 bit float, that means that dither is applied when exporting to a "lower" bit format. The maximum amount of dither (shaped dither) that is applied is:
32 bit float > 16 bit = less than -70 dB peak (-82 dB rms - "sounds like" about -90 dB)
32 bit float > 24 bit = less than 138 dB (-145 dB rms)
32 bit float > 32 bit (integer) = none, but there will be rounding errors less than -192 dB peak (-216 dB rms)

As a rough guide, if you are playing your music (normalized close to 0 dB) at a volume equivalent to heavy truck traffic, anything below -90 dB is completely and totally inaudible.
Because Audacity uses "shaped" dither by default, the dither noise is primarily in the very high frequency range where low level hearing is less sensitive, so you get about another 10 dB, giving the "sounds like" figure.

Dither noise does "add up", so if you repeatedly convert from 32 bit float to 16 bit with dither, then to 32 bit float and repeat several times, the dither noise will gradually increase and become audible even at normal listening levels. Ideally you should only convert down to 16 bit once. In practice you can do it a few times with no audible loss of quality, and with a low quality recording (anything on cassette or vinyl) you can probably covert dozens of times with no audible loss because the noise level inherent in the original recording will swamp the dither noise.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply