diff --git a/ratatoskr.sh b/ratatoskr.sh index 7b38d6d..c21e774 100755 --- a/ratatoskr.sh +++ b/ratatoskr.sh @@ -61,11 +61,12 @@ play_sound() { fi soundName="$*" declare -A sounds=( - [error]="|sox -n -p synth saw E2 fade 0 0.25 0.05 repeat" + [error]="|sox -n -p synth saw E2 fade 0 0.25 0.05 repeat norm -7" + [music]="|sox -np synth pl E2 pl B2 overdrive 100 remix - overdrive 100 fade h .25 1 .25 norm -11" [post]='|sox -np synth .05 tri C2:C7' ) if [[ -n "${sounds[${soundName}]}" ]]; then - sox -qV0 "${sounds[${soundName}]}" -d norm -9 &> /dev/null & + sox -qV0 "${sounds[${soundName}]}" -d gain -9 &> /dev/null & fi } @@ -130,7 +131,7 @@ post_music() { exit 1 fi echo "Music posted!" - play_sound post_music + play_sound music }