Ich habe das Skript noch etwas angepasst, um nur die Kanäle aus der Rodecaster-WAV zu extrahieren, die ich wirklich brauche.
#!/bin/bash
function convert() {
filename=$1
suff=$2
channel=$3
filename_without_ext=`echo "${filename}"|sed "s/\(.*\)\.\(.*\)/\1/"`
mkdir -p $filename_without_ext
channel_frmt=`printf "%02d" $channel`
new_filename="${filename_without_ext}/${filename_without_ext}-${channel_frmt}−$suff.flac"
echo "Extracting channel ${channel} to ${new_filename}..."
sox $filename $new_filename remix $channel
}
convert $1 "Left" 1
#convert $1 "Right" 2
convert $1 "Mic-1" 3
#convert $1 "Mic-2" 4
#convert $1 "Mic-3" 5
#convert $1 "Mic-4" 6
convert $1 "USB-Left" 7
#convert $1 "USB-Right" 8
#convert $1 "TRRS-Left" 9
#convert $1 "TRRS-Right" 10
#convert $1 "Bluetooth-Left" 11
#convert $1 "Bluetooth-Right" 12
#convert $1 "Sounds-Left" 13
#convert $1 "Sounds-Right" 14