update noise
authorDan White <dan@whiteaudio.com>
Thu, 18 Jan 2024 04:02:46 +0000 (22:02 -0600)
committerDan White <dan@whiteaudio.com>
Thu, 18 Jan 2024 04:02:46 +0000 (22:02 -0600)
noise

diff --git a/noise b/noise
index 849fdb00725e0891f58fae377b09767a1f36b999..022754d8d151766396b107e9df15cf4ea7a2cea7 100755 (executable)
--- a/noise
+++ b/noise
@@ -2,11 +2,17 @@
 
 # Play brown noise in the background
 
-DEFAULT_GAIN="-36"
+DEFAULT_GAIN="26"
 
 GAIN=${1:-$DEFAULT_GAIN}
 
-echo $GAIN
+echo "gain: ${GAIN}"
+
+# amplitude distribution seems sketchy
+# play -c 2 -n synth brownnoise gain ${GAIN}
+
+
+# generate 1/f^2 noise by integrating white spectrum
+play -c 2 -n synth whitenoise lowpass -1 1 gain ${GAIN}
 
-play -c 2 -n synth brownnoise gain ${GAIN}