Polished Mix
  • Home
  • Mixing
  • Recording
  • Quote
  • Blog
  • Menu Menu
  • Link to Facebook
  • Link to Youtube
  • Link to Instagram
You are here: Home1 / Blog2 / Engineering3 / Batch normalizing a large number of files (OSX)

Batch normalizing a large number of files (OSX)

/in Engineering, Tips and Tricks/by

Depending on your workflow, you might want your tracks to come in at a predictable level. For example, when you work with a mix template, normalizing your tracks will help you get a rough mix faster because you can predict the input level of your kick and snare is and have your plugins pre-dialed correctly.

While it’s not perfect and you will still need to do some balancing, normalizing can help you in your mixing workflow.

There are a few paid tools that can help you with this task (for example Sound Grinder) but with a little effort, you can create your own, efficient workflow for this.

https://www.polishedmix.com/polished_uordpress/wp-content/uploads/2017/08/NormalizeService-1.webm

[Note: This guide covers only OSX]

Step 1: Get the command line tool that does the normalizing

I used SOX, an open source project that works on Windows and Mac.

Download the file named ‘sox-14.4.2-macosx.zip‘ here: https://sourceforge.net/projects/sox/files/sox/14.4.2/

Step 2: Double click on the archive to extract it

 

Step 3: Rename the folder

Right click on the ‘sox-14.4.2’ folder, select ‘Rename’ and call it ‘sox’. As a result, it will be easier to update Sox in the future without changing other things

Step 4: Drag the ‘sox’ folder into ‘Applications’ on the left side of your finder

Now you can either download the Automator Script that I prepared here, double click to import and be done with it, or do it manually yourself by following the steps below.

 

 

Step 5: Open ‘Automator’

It’s an Apple program located in your ‘Applications’ folder.

Step 5: Select ‘File->New’ and choose ‘Service’

 

Step 6: Select inputs as ‘audio files’ from Finder

 

Step 7: Drag in ‘Run Shell Script’ action from Utilities and set ‘Pass input as arguments’

 

Step 7: Replace the ‘cat’ command with the actual code

#!/bin/bash
normalizationValue="-12"

for f in "$@"
do
 normalizedFolder="$(dirname "$f")/Normalized ${normalizationValue}"
 fileName=$(basename "$f")
 if [ ! -d "${normalizedFolder}" ]; then
 mkdir "${normalizedFolder}"
 fi
 /Applications/sox/sox --norm=${normalizationValue} "$f" "${normalizedFolder}/${fileName}"
done

Note that you can change the normalization from “-12” to whatever you like here.

Your windows should now look like this:

Step 8: Finally, hit save, name the service ‘Normalize’ and enjoy!

Tags: automation, automator, batch, batching, normalization
Share this entry
  • Share on Facebook
  • Share on X
  • Share by Mail
https://www.polishedmix.com/polished_uordpress/wp-content/uploads/2017/08/Normalize-square-2.jpg 1080 1080 https://www.polishedmix.com/polished_uordpress/wp-content/uploads/2019/10/TopLogo2-1030x261.png 2017-08-06 13:40:362018-05-20 09:23:11Batch normalizing a large number of files (OSX)
3 replies
  1. Ronny Lingier
    Ronny Lingier says:
    March 24, 2018 at 1:42 am

    When executing the task ‘Execute shell script’ an error has occurred: ‘/ Applications / sox / sox FAIL formats: no handler for file extension `mp3’ ‘
    I did this
    #!/bin/bash
    normalizationValue=”-12″

    for f in “$@”
    do
    normalizedFolder=”$(dirname “$f”)/Normalized ${normalizationValue}”
    fileName=$(basename “$f”)
    if [ ! -d “${normalizedFolder}” ]; then
    mkdir “${normalizedFolder}”
    fi
    /Applications/sox/sox –norm=${normalizationValue} “$f” “${normalizedFolder}/${fileName}”
    done

    Reply
    • Jacek
      Jacek says:
      March 25, 2018 at 7:53 am

      HI, Ronny. It looks like you are trying to run this on an mp3 file and that probably won’t work. What I described in the post applies to WAV files only.

      Reply
      • Amos
        Amos says:
        May 15, 2018 at 12:59 am

        hi Jacek and thanks for the script! can it run on aif files?

        Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Pages

  • Blog
  • Front Page
  • Mixing
  • Mixing Proposal for Chris Vurnis
  • Mixing Proposal for Shaylon
  • Proposal for All The New
  • Proposal for All The New – 6 songs
  • Proposal for Gürschach – album
  • Proposal for Midnight Sinfini – mixing
  • Proposal for Midnight Sinfini – Single mix
  • Proposal for Steel God – mixing
  • Proposal for Swoon
  • Proposal for Viscelator
  • Quote
  • Recording

Categories

  • Blog
  • Engineering
  • Facebook
  • guitar
  • promotion
  • Tips and Tricks

Archive

  • April 2019
  • September 2018
  • April 2018
  • February 2018
  • September 2017
  • August 2017
  • February 2017
Link to: PRS winged locking tuners – how to use this darn thing? Link to: PRS winged locking tuners – how to use this darn thing? PRS winged locking tuners – how to use this darn thing? Link to: How to promote your music online Link to: How to promote your music online How to promote your music online
Scroll to top Scroll to top Scroll to top