Created
March 6, 2015 17:50
-
-
Save jwatte/5dd89b259eb3f42b54eb to your computer and use it in GitHub Desktop.
soundstretch wrapper for extracting BMP from MP3
This file contains 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
#!/bin/bash | |
trap "rm /var/tmp/foo.wav" EXIT | |
mpg123 -w /var/tmp/foo.wav "$1" >/dev/null 2>/dev/null | |
echo -n "$1 ; " | |
bpm=`soundstretch /var/tmp/foo.wav -bpm 2>&1 | grep "Detected BPM rate" | sed -e "s/Detected BPM rate //"` | |
echo "$bpm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment