Channel-Independent Loudness Normalisation of Multichannel Sound Files in a Folder and All Its Subfolders

I would like to ask whether it is possible to perform channel-independent loudness normalisation on multichannel sound files located within a folder and its subfolders.

Accessing and opening the sound files across the folder hierarchy is straightforward; however, I am unsure whether SuperCollider supports loudness normalisation on a per-channel basis.

Any guidance or suggestions would be greatly appreciated.

Thanks!

SoundFile’s normalize method has a Boolean argument linkChannels – if you set it to false, then the volume adjustment will not be linked across channels (i.e., channel independent).

But SoundFile normalize runs in the language, so it’s very slow. That is, we “support” it but you will be disappointed with the speed.

For batch processing, you could get much better performance by issuing sox unixCmds.

Some years ago, I wrote an alternative to SoundFile normalize using an NRT server. That’s quite fast, but I can’t find the code just at this moment. (A bug in that code was that you couldn’t start outputting from the middle of the input file… never fixed it, and I don’t think it’s really worth it.)

hjh

1 Like