Skip to content

Instantly share code, notes, and snippets.

@NalaGinrut
Last active December 27, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NalaGinrut/7350418 to your computer and use it in GitHub Desktop.
Save NalaGinrut/7350418 to your computer and use it in GitHub Desktop.
play piano in terminal
#!/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
@NalaGinrut
Copy link
Author

echo "a a e e f f e" | ./play.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment