Skip to content

Instantly share code, notes, and snippets.

@azimut
Created July 22, 2017 02:28
Show Gist options
  • Save azimut/0b06b3f33facc5905e62352761f65a68 to your computer and use it in GitHub Desktop.
Save azimut/0b06b3f33facc5905e62352761f65a68 to your computer and use it in GitHub Desktop.
Create spectrograms from a bunch of audio files, try also with "rate 4k" to "zoom" bottom part
#!/bin/bash
a=0
for i in ~/music/*mp3; do
((a++))
sox \
"$i" \
-n remix 1 spectrogram \
-m -h \
-p 2 \
-z 80 \
-s \
-d 60 \
-x 1000 \
-c "" \
-o ${a}.spectrum.png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment