Skip to content

Instantly share code, notes, and snippets.

@bitmvr
Created March 7, 2018 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitmvr/b5dfae619cf7b03f7247675660edeb7d to your computer and use it in GitHub Desktop.
Save bitmvr/b5dfae619cf7b03f7247675660edeb7d to your computer and use it in GitHub Desktop.
The most satanic shell script ever written.
#!/usr/bin/env bash
# Check for play command
dependency='sox'
if ! command -v $dependency > /dev/null; then
echo "$dependency is not installed on this system. Please install $dependency"
exit
fi
# Play sound sample
time=1
while [ $time -ne 4 ]; do
play -q -n synth 1 sin 666 trim 0 .1
time=$((time + 1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment