From 04333528101706317626a198a693d3dc8f1b55f4 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 20 Jun 2017 17:04:12 -0400 Subject: [PATCH] Suppress all messages from sox. --- simon/simon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simon/simon b/simon/simon index cddce5e..af2bc55 100755 --- a/simon/simon +++ b/simon/simon @@ -9,7 +9,7 @@ continue=1 while [ $continue -ne 0 ]; do # Play the pattern to match for i in ${pattern[@]} ; do -play -q -n synth .5 ${notes[$i]} norm -9 +play -qV0 -n synth .5 ${notes[$i]} norm -9 &> /dev/null done # Loop to read the player's input and compare it to the pattern # Clear the player variable @@ -23,7 +23,7 @@ key="$(echo "$key" | tr 'eu' '3')" player=(${player[@]} $key) # make sure the pressed key exists in the array. if [[ "$key" =~ [0-3] ]]; then -play -q -n synth .5 ${notes[$key]} norm -9 & +play -qV0 -n synth .5 ${notes[$key]} norm -9 & &> /dev/null fi # make sure the player pattern is the same as the computer generated one if [ "${player[$i]}" != "${pattern[$i]}" ]; then