Created
December 5, 2014 11:20
-
-
Save coderofsalvation/3b69ec0c97bd30a7f0e3 to your computer and use it in GitHub Desktop.
soxmasterhouse maximizer using TAP scaling limiter ladspa + reverb on sides
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # soxmasterhouse configuration file | |
| # | |
| [[ ! -n $CLIP ]] && CLIP="2" | |
| # init fx | |
| LIMIT="ladspa tap_limiter.so "tap_limiter" "-"$CLIP 0.0" | |
| REVERB="reverb 20 50 100 50 60 -10" # reverb %,HF-damping %,roomscale %, stereodepth %, pre-delay ms, wet-gain db | |
| [[ -f /usr/lib/ladspa ]] && export LADSPA_PATH="/usr/lib/ladspa" | |
| [[ ! -f /usr/lib/ladspa/tap_limiter.so ]] && echo "please download TAP pluginpack (hint: apt-get install tap-plugins)" && exit | |
| process_pre(){ | |
| input="$1"; output="$2"; echo "preprocessing" | |
| echo "correcting L/R because of tubes (assuming drums are used)" | |
| sox "$input" "$input.L.wav" remix 1 norm | |
| sox "$input" "$input.R.wav" remix 2 norm | |
| sox "$input.R.wav" tmp.wav gain -1.5 && mv "tmp.wav" "$input.R.wav" | |
| sox -M "$input.L.wav" "$input.R.wav" "$output" norm | |
| # aplay "$input" -d 2s # uncomment this to preview the dry signal | |
| } | |
| process_mid(){ | |
| input="$1"; output="$2"; echo "processing mid of M/S" | |
| sox "$input" "$output" ${LIMIT} | |
| # aplay "$input" -d 2s # uncomment this to preview the dry signal | |
| } | |
| process_side(){ | |
| input="$1"; output="$2"; echo "processing side of M/S" | |
| sox "$input" "$output" ${REVERB} | |
| # aplay "$input" -d 2s # uncomment this to preview the dry signal | |
| } | |
| process_post(){ | |
| input="$1"; output="$2"; echo "post processing " | |
| sox "$input" "$output" ${LIMIT} norm | |
| echo "$output" | |
| # aplay "$input" -d 2s # uncomment this to preview the dry signal | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment