Skip to content

Instantly share code, notes, and snippets.

@xguse
Created March 11, 2011 23:11
Show Gist options
  • Save xguse/866778 to your computer and use it in GitHub Desktop.
Save xguse/866778 to your computer and use it in GitHub Desktop.
brown noise generator using sox for linux. keywords: white pink red brown noise
#!/bin/sh
len='7:00:00'
vol=1
if [ "$1" != '' ]; then
len=$1
fi
if [ "$2" != '' ]; then
vol=$2
fi
play -v $vol -t sl - synth $len brownnoise band -n 1200 200 tremolo .1 40 < /dev/zero
@rsvp
Copy link

rsvp commented Sep 11, 2011

hi, I expanded the one-liner to a fully documented "stereo" script where the CPU usage is reduced by 95%, https://gist.github.com/1209835 -- thanks very much for your tremolo parameters because the widely used one-liners are not optimal.

@xguse
Copy link
Author

xguse commented Nov 10, 2011

Rad. I'll have to check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment