You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
320 B
19 lines
320 B
#!/bin/bash
|
|
|
|
IFS=$'\n'
|
|
|
|
stop_playback () {
|
|
aplaymidi -p 24:0 ./stopm.mid
|
|
exit
|
|
}
|
|
|
|
trap stop_playback INT
|
|
|
|
for file in $(find "$1" -maxdepth 1 -iname "*.mid" | sort)
|
|
do
|
|
filename_stripped=$(basename $file)
|
|
echo "Playing $filename_stripped"
|
|
aplaymidi -p 24:0 $file
|
|
aplaymidi -p 24:0 ./stopm.mid
|
|
done
|