rotagon/beat_detector.sh
Frank Villaro-Dixon 561aedd930 some beats
2015-01-01 12:05:40 +01:00

13 lines
186 B
Bash
Executable file

#!/bin/bash
mplayer mus.mp3 > /dev/null &
START=$(date +%s.%N)
> mus.beats
while true; do
read n
END=$(date +%s.%N)
DIFF=$(echo "$END - $START" | bc)
echo $DIFF >> mus.beats
done