sounds-Abound now works with space or enter.

This commit is contained in:
Storm Dragon 2018-05-09 20:18:35 -04:00
parent 9a85a6d12d
commit 2203a30aa4

View File

@ -35,11 +35,11 @@ sequence="${sequence}\"|sox -np synth 0.0$(($RANDOM % 5 + 4)) sq ${notes[$(($RAN
done done
eval play -q ${sequence} norm -5 eval play -q ${sequence} norm -5
sleep .5 sleep .5
unset guess guess="win"
i=0 i=0
while [ -z "${guess}" ]; do while [[ "${guess}" == "win" ]]; do
play -nqV0 synth .2 sq E4 pad .3 norm -5 & play -nqV0 synth .2 sq E4 pad .3 norm -5 &
read -sn1 -t .6 guess read -sn1 -t .6 guess || guess="win"
((i++)) ((i++))
done done
if [ $i -eq $length ]; then if [ $i -eq $length ]; then