Suppress all messages from sox.
This commit is contained in:
parent
fc2156effe
commit
0433352810
@ -9,7 +9,7 @@ continue=1
|
|||||||
while [ $continue -ne 0 ]; do
|
while [ $continue -ne 0 ]; do
|
||||||
# Play the pattern to match
|
# Play the pattern to match
|
||||||
for i in ${pattern[@]} ; do
|
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
|
done
|
||||||
# Loop to read the player's input and compare it to the pattern
|
# Loop to read the player's input and compare it to the pattern
|
||||||
# Clear the player variable
|
# Clear the player variable
|
||||||
@ -23,7 +23,7 @@ key="$(echo "$key" | tr 'eu' '3')"
|
|||||||
player=(${player[@]} $key)
|
player=(${player[@]} $key)
|
||||||
# make sure the pressed key exists in the array.
|
# make sure the pressed key exists in the array.
|
||||||
if [[ "$key" =~ [0-3] ]]; then
|
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
|
fi
|
||||||
# make sure the player pattern is the same as the computer generated one
|
# make sure the player pattern is the same as the computer generated one
|
||||||
if [ "${player[$i]}" != "${pattern[$i]}" ]; then
|
if [ "${player[$i]}" != "${pattern[$i]}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user