add noise generator
authorDan White <dan@whiteaudio.com>
Wed, 17 Jan 2024 19:44:13 +0000 (13:44 -0600)
committerDan White <dan@whiteaudio.com>
Wed, 17 Jan 2024 19:44:13 +0000 (13:44 -0600)
noise [new file with mode: 0755]

diff --git a/noise b/noise
new file mode 100755 (executable)
index 0000000..849fdb0
--- /dev/null
+++ b/noise
@@ -0,0 +1,12 @@
+#!/usr/bin/bash
+
+# Play brown noise in the background
+
+DEFAULT_GAIN="-36"
+
+GAIN=${1:-$DEFAULT_GAIN}
+
+echo $GAIN
+
+play -c 2 -n synth brownnoise gain ${GAIN}
+