From 2203a30aa4bf41c31807e48be2c278155ccaffc5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 9 May 2018 20:18:35 -0400 Subject: [PATCH] sounds-Abound now works with space or enter. --- sounds-abound/sounds-abound | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sounds-abound/sounds-abound b/sounds-abound/sounds-abound index 69cc859..efcd033 100755 --- a/sounds-abound/sounds-abound +++ b/sounds-abound/sounds-abound @@ -35,11 +35,11 @@ sequence="${sequence}\"|sox -np synth 0.0$(($RANDOM % 5 + 4)) sq ${notes[$(($RAN done eval play -q ${sequence} norm -5 sleep .5 -unset guess +guess="win" i=0 -while [ -z "${guess}" ]; do +while [[ "${guess}" == "win" ]]; do play -nqV0 synth .2 sq E4 pad .3 norm -5 & -read -sn1 -t .6 guess +read -sn1 -t .6 guess || guess="win" ((i++)) done if [ $i -eq $length ]; then