Adds an audio logo to a (music) track with SOX audio library
####INFO: This script uses ES6 features and needs at least node v5.6.0.
sudo apt-get install sox
sudo apt-get install libsox-fmt-mp3
OSX (with http://brew.sh/):
brew install sox --with-lame
You need a files/logo.mp3 file that contains the audio logo. Also a WAV-file of the track to which you want to add the audio logo. You have to pass the name as an argument (see below).
The times it takes to fade between full volume an TRIM_DB.
Distance between the beginning of one logo to the beginning of the next logo.
Length of the audio logo in seconds.
Trims the original tracks volume to the value (dB) while the audio logo is playing.
The script uses the RMS delta value of the original track to calculate the volume of the audio logo for each track individually. If you think the logo volume gets to loud increase this value, otherwise decrease it.
Sample rate of the output file.
Offset for the first logo (in seconds).
node main.js [track file path] [track length in seconds]
node main.js /opt/files/my-score.wav 230