Skip to content

Instantly share code, notes, and snippets.

@dardo82
Last active Dec 18, 2019
Embed
What would you like to do?
audioDB & fftExtract
#!/bin/zsh
SHOW=$1
ADB="$1.adb"
audioDB -d "${ADB}" -N
audioDB -d "${ADB}" -L
audioDB -d "${ADB}" -P
audioDB -d "${ADB}" -S
for MP4 in ${SHOW}*.mp4; do
ffmpeg -i "${MP4}" ${MP4/mp4/wav}
# rm -v "${MP4}"
done
for WAV in *.wav; do
fftExtract -v 10 -c 12 -s 100 "${WAV}" ${WAV/wav/chr}
fftExtract -v 10 -P -s 100 "${WAV}" ${WAV/wav/pwr}
done
for CHR in ${SHOW}*.chr; do
audioDB -d "${ADB}" -I -f "${CHR}" -w ${CHR/chr/pwr}
done
for CHR in *.chr; do
audioDB -d "${ADB}" -e -f "${CHR}" -Q nsequence
# rm -v "${CHR}" ${CHR/chr/pwr}
done
# rm -v "${ADB}"
rm -v ${SHOW}*.wav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment