Catting weird things to /dev/audio
everything2.com
everything2.com
Later (1980) when I wrote a BASIC to Z80 compiler I used the same technique to profile the code and achieved a 5x speed-up by knowing which loops ran slowly.
The key point of this combination is that yes outputs "y\ny\ny\n...". If you just send one character over and over you don't hear anything - I think the difference between adjacent character values determines the frequency of the output.
>Plus if there are any sound files on your drive saved in a lossless format they just play at random and then disappear back into the soup.
They need to be uncompressed (ie. contain raw audio data), not just lossless.
cat /dev/urandom > /dev/audio
I use it as a white noise generator, to cover ambient noise at night. Anyone know how to make a low pass filter (to make pink/red/brown noise)? I tried repeating the random source, to increase the wavelength, but it gets little R2D2 chirps and clicks in it (because of the step-like waveform): cat /dev/urandom | sed 's/./&&&&&&/g' > /dev/audioI tried their download brown noise loop, but it doesn't (always) loop seamlessly, even using:
mplayer /home/user/8usb/SimplyNoise.com\ -\ Brown\ Noise.m4a -loop 0
I also tried downloading their flash swf itself, but it doesn't run locally (I expect it needs to phone home for the sound files).In about:config there's the options:
browser.cache.memory.enable
browser.cache.disk.enable
and related settings. Disabling the memory cache might let you grab it.
If I get the spare time today, I'll see if I can't get the swf to pull out.
cat /dev/urandom | sed 's/./ &/g' > /dev/audio cat /dev/mem > /dev/audio
Also, for some reason, this command makes it "beep" on every eleventh character you type. Probably something to do with buffers. cat /dev/input/by-path/platform-i8042-serio-0-event-kbd > /dev/audio wget http://www.wikipedia.com --output-document=- > /dev/audio
Download a webpage, output to soundcard. Works pretty well, I need to find a bigger page to work with though.Edit: For a cool audio representation of the file size, try comparing Wikipedia with the Google homepage :)
the command say is pretty interesting though
I've used portaudio from Python on OS X before for doing this kind of audio manipulation.
I guess I don't have any at the right frequency, though :(
> In order for noise to happen there must be at least some variation.
It's pretty neat. The data pretty much represents the position of the speaker.
Audio stuff is pretty fascinating; I read a great book on explaining DSPs for audio processing. I'll have to dig it out of my closet.
$reset