Last active
December 27, 2015 15:49
-
-
Save NalaGinrut/7350418 to your computer and use it in GitHub Desktop.
play piano in terminal
This file contains hidden or 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 | |
while read -e input | |
do | |
for i in $input | |
do | |
play -q -n synth 3 pluck %$(expr index abbccddeeffgg $i - 1) & | |
sleep 0.5 | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
echo "a a e e f f e" | ./play.sh