But it seems that audacity is not resampling the actual files to the higher sample rate, just the project’s.
Is there something i’m missing? how do I batch resample a bunch of files to a higher sample rate in order to simulate true peak normalizing?
audacity is not resampling the actual files to the higher sample rate
Audacity converts sound files to its own high quality internal format for editing. It doesn’t work on the original file. When it’s done, you can tell Audacity to Export the show to the original file name and it will downconvert the quality back to normal and overwrite the original file.
There is an upper limit to the sampling rate that Audacity can use and I don’t remember what it is.
I work with lots of audio files
MP3 files? Because of the double conversion process, the quality of the corrected MP3 files is always worse than the original.
You may decide you want one of the “pure” MP3 editors missing the conversions.
When working with “normal” audio, “True Peak” will only be a small fraction of a dB higher than the highest sample value.
Rather than worrying about fractions of a dB, I just normalize lossless file formats to -1 dB, which leaves plenty of space for the “true” peaks.
Note that although Audacity’s resampling is extremely good, down-sampling (lowering the sample rate) is never “perfect”. If you resample the exported file back to 44100 Hz, the small losses due to resampling will be greater than if you had not bothered about “True Peak” and just normalized to -1 dB.
Note that MP3 requires more headroom as peaks may be higher due to encoding losses.
Note that “True Peak” may be more or less that “actual peak” after it has gone through the D/A converter, as D/A converters are not perfect.
It works perfectly for a single file at a time, if I try doing this with multiple files on the project, it combines every file into one (I’m assuming because of SelectAll > MixAndRender). Is there a way to do this per track and keep all the files separate?
Also, I’m fine with exporting the files myself through File > Export > Export Multiple, the macro doesn’t need to do it for me, since I’ll be saving the files to somewhere else on my computer.
Ah, batch processing makes a lot more sense than trying to do it all in a single project.
I tried it without setting the project back to 44100 and it saved the files in 192000, which I guess I should have expected, so I included the final downsampling back to 44100 and now it works almost exactly the way I want it to.
Now the only thing that’s slightly bothering me is that the files are exported as 16 bit .wav files, whereas the original files are in 32 bit. I know it may seem like a minor thing, but is there a way to save them as 32 bit? The settings in my Preferences > Quality are set to 44100 32-bit float and i can’t find any Render/Export quality settings, It seems like the only way to export a 32 bit file is by changing the option to “WAV (Microsoft) 32-bit float PCM” in the Export Audio window, which is not possible to change to from the macro command.
You’ve been very helpful so far, so if this is not possible I’ll just accept it and move on!
Unfortunately Audacity does not yet have a way to set the export options for the macro Export commands.
Fortunately there is a workaround:
Before running the macro, just export from Audacity (manually) with “File menu > Export > Export as WAV” and select the required format (probably “32-bit float” if you want it to be the same as Audacity uses internally).
The settings that you use are remembered by Audacity as the default for next time you export as WAV.
After doing that, go back to an empty project, and run your batch process.