I like it!
This beats the heck out of "cat /dev/urandom > /dev/dsp". The band filter is nice to take out the pops.
Groovy
I will probably keep looking at other options such as Broodle to see what is out there. But this is a really cool one liner. I had no idea that sox could do this! Should somebody be looking for such a thing I'll be sure and point them to this page.
Thanks a lot.
Updates
With recent versions of sox, things are a little simpler:
play -n synth 60:00 brownnoise
produces brown noise for an hour. (Replace brown with pink/white if you prefer. My baby sleeps best with brown).
brown noise...
Have to say I thought this was a "brown note" joke, but the "brown" in "brown noise" means Brownian motion. It's also called red noise. I learned something today, hooray!
Tom Swiss - proprietor, unreasonable.org
thanks -- this works great!
This tip is a godsend to me. Just switching to Ubuntu on my new netbook and this works like a charm. I was missing the app Noise, which I use on the Mac. I wonder if this would work using Terminal on the Mac? Anyway, thanks so much.
vibro effect renamed
I'm still working out how to do this using a single command, I.E. without the pipe, but the 'vibro' effect is now called tremolo in the latest version of Sox.
Thanks for posting this anyway, I've had much more luck in 5 minutes with this than with Boodle.
vibro -> tremolo
I just figured out the rename (it was driving me nuts that it broke after I upgraded my box) and came over to update the page, only to find your comment.
The two sox invocations can be replaced with one call to play:
play -t sl - synth $len pinknoise band -n 1200 200 tremolo 20 .1
So how do I combine it with sine-wave generation?
Suppose I want to do Brainwave Entrainment, so I want to play a 400hz pure tone in the left ear, and a 410hz tone in the right ear, and then I wanted to merge with that the pink or brown noise at 1/4th the volume. Can sox actually generate all that in a single command line?
And can sox do frequency shifts?
That would be awesome if it could! :)
6 hours 43 min ago
2 days 1 hour ago
5 days 9 hours ago
5 days 22 hours ago
5 days 23 hours ago
6 days 2 hours ago
6 days 13 hours ago
2 weeks 1 day ago
2 weeks 3 days ago
2 weeks 4 days ago