Acts of Volition


Comments are locked. No additional comments may be posted.

Johnny -

How many beers did you have before you did this? You have really taken the geekery up a notch! Having said that, I still think its pretty cool, in a "Close Encounters of the Third Kind" sort of way.

Rob Mientjes -

That's cool... Now to make images that play certain music and you can distribute music as JPG :P

Ryan Hillier -

This is one of the coolest things I've seen/heard, ever.

sil -

cat /dev/urandom | sox -s -b -t raw -r 44100 - out.ogg

Sox is a thing which does for sound what ImageMagick's convert does for images. Since you're feeding in data whch doesn't have any formatting at all, you have to lie to sox and tell it a format that the data is in: that's what all the options do. Sox also doesn't do mp3 encoding, so this outputs an ogg, but I suppose you could sox something into a wav file and then chuck that through your choice of mp3 encoder if you wanted to.

I am firmly of the opinion that you never ever ever need to use a wire to connect a bit of a computer to another bit of the same computer :)

On the other hand, I knew about sox: this would have been considerably harder if I didn't...

Steven Garrity -

sil, I was searching for something like <span class="code">sox</span>. It does exactly what I was looking for. Thanks!

Gabriel Mihalache -

Let's listen to urandom for messages from [your favorite deity or none at all], or from Linus ;-)

The next step is to convert mouse movements into sound, and voila! ... a new musical instrument.

Joe Payne -

This is pretty cool.
Now what happens when it comes to an actually sound file for the ls -R / one?

jp -

Wow... That is insane... I need to try out my self! heh, that's so cool for nerd like me =)

Daryl -

Actually, you can cat your mouse (heh) and pipe it to aplay. Just find your X11 conf file (I'm on Fedora Core 3, so it's /etc/X11/xorg.conf) and find the device your mouse is attached to. Then issue "cat /dev/input/mice > /tmp/music.txt" where "/dev/input/mice" is your mouse device. You can then cat the resulting file and pipe it to aplay. It seems to be a pretty uniform high-pitched sound. You can probably just cat the mouse straight to aplay, but I don't have speakers on the one system and can't seem to find the mouse device on my touchpad laptop (or at least to cat it), so I catted the mouse on my desktop system and copied the file over to my laptop to listen (so I needed a file to copy).

Willem -

If you plug your (hi-fi) headphones directly into the back of your soundcard, and turn up the volume, you can hear a very faint version of the hard drive/processor sound.

It was kind of fun listening to a 3D render.

The flag sounds strangely good.

Speaking of turning image data into sound: Winamp has its Nullsoft Tiny visualisation plugin, that outputs the equalizer to you screen, placing all frames vertically next to one another, creating a human understandable left-to-right image of sound.

You can configure the plugin to create black where there is sound, and white where there is none, and the result is as if you've tried to draw out the music on paper with smudgy charcoal. I have a couple screenshots; I'll uploade them one time.

Juan C Nuno -

OK. Dude. This is the coolest thing I've come across in a long time. You are my fucking hero.

daveg -

I did this a few years ago in a similar state of mind. I listened to ColdFusion Studio (compiled delphi), Eclipse IDE (java), and some other ones. They sound quite different based on the underlying language.

Dave -

Or if you've got a Mac and want to hear some poetry:

uuencode /bin/ls /bin/ls | say

Or for some annoying singing:

uuencode /bin/ls /bin/ls | tr [-az-AZ-] a | say

I kind of like the rhythm of:

uuencode /usr/bin/say /usr/bin/say | tr [-az-AZ-] k | say

Or the 50's stylings of:

uuencode -m /bin/ls /bin/ls | head -11 | tail -10 | sed 's/AAA/ doowaa /g' | sed 's/A/ boop boop /g' | say

Rock on.

Seth Thomas Rasmussen -

That is way cool. I don't suppose there's any way to try the same thing on my Windows machine, is there?

jerry -

Have you tried feeding tcpdump into aplay?

jimmy -


daveg -

Seth: on Windows I had renamed the file to .Wav and fed the file thru an encoder - blade i believe - and that outputs mp3.

James -

This rocks!
Think of the things you could do with this! It's like MIDI, but higher pitched and not as good!

Wheres mspaint? I've got composing to do!

By the way, I don't seem to have aplay in debian sarge. Is there an equivalent?

Jason -

On many Linux boxes (including my Fedora 3 laptop) you can simply do a 'cat [soundfile] > /dev/audio'. This works for 'cat /dev/urandom > /dev/audio'. The beauty part is that you can do this remotely. I used to ssh into a box at work, turn the mixer volume all the way up, and 'cat [loud sound] > /dev/audio'. If the person at the console has their speakers on, this command causes said person to soil themselves.

Berean -

Reminds me alot of backing up data on a Nomad Jukebox 4(5?) years ago... you had to rename your files to .mp3, so that the nomad program would copy them (this is before Creative or a third party released software that got around that)...

So, you're data files appeared as MP3s.

And, you could play them. And, they really really hurt my ears.

fluffy -

Most of the songs on my first album make heavy use of instrument samples which were non-sample files. In "Return of the Files," all of the samples are non-sample files. The drum loop is from MS-DOS 6.22.

Doesn't have to be amusical noise.

alexjuno -

Like where this is heading... maybe a new genre of music will be appearing soon :-)

Ceiling Fan #48 -

This is an old trick for hard core UNIX users. In our little group, we used to use a similar technique to detect strange network behavior by filtering network activity through a speaker. The security guy was insane - he eventually heard noises in his own home, like the fridge winding down, and mistook them for security violations.

Alan -

Can you make a way that the mouse can work like a waa-waa pedel or a phase shifter over-top of the noise?

Derte -

I think you must try fractal images to do that. Bach Music could be represented as a Fractal, and I guess the tipical fractal pic would sound nice :)

Do it and take into MOMA :)

Alan -

I want to hear the sound of my computer as if it were recorded on <i>Frampton Comes Alive</i>.

darian -

I used to feed /proc/kcore to my dsp device for some interesting sounds.

cat /proc/kore > /dev/dsp

The sound of the kernel

S -

This is pretty cool! How abt doing it the other way.. taking an mp3 and converting it to BMP. We could distributes images encoded w/ music?

Block Sheep -

I used to do this all the time when I first started playing around with audio software in windows 3.11

I had a couple (rather large) word documents that had some great sounds in them.

Cool Edit (now Audition) is the most fun for playing around with the sounds you find in data.

mnology -

As far as opening any file as a raw sound file and then editing it, Soundforge does this inherently. File -> Open -> Any filetype. MS Word2K executable hides bleep bloops and drum lines.

Willem -

As promised above, here's an output screenshot of Nullsoft Tiny.

It's about 20 seconds of Polynomial-C by Aphex Twin.

afrael -

You're a creative freak, no pun intended ;-)

Kate -

So has anyone played pi yet?

J -

Olivier -

Steve, funny experiment! Audacity let's you play non-audio data as well, but I guess something like the file list wouldn't work.

I remember reading about something similar, but different: using a matrix printer to play music. Instead of a picture producing music, you would have music producing a picture. I betcha there is a whole scene out there doing this. Now all you need to do is salvage that old matricprinter (and probably a computer with a paraller port) from the garage/dump :)

Olivier (Brussels)

hanna -

Nice, but certainly not new—as an MSc student, living in Edinburgh, I found I would often sleep through my alarm. To address this, I would set a cron job to cat my kernel to my sound device at the time I wished to be awakened: <tt>cat /vmlinuz > /dev/dsp</tt>. Oh, sure, it's not the most pleasant thing to hear first thing in the morning, but it did work pretty well.

kathode -

hi, there's an actual recording of matrix printers on cd:
i usually take a Y-splitter and hook up both audio and video feed to my tv video-in , so it can blend signals (nice when you loop the visuals) i'll have a show on feb 2nd featuring a distorted sounds from a tv tube loopback.


a -

Baudio turns any file into sound, too:

Julian Oliver -

hmm cat is designed to do this - UNIX users have been using this to monitor network traffic and scare friends for years. <br><br>try mounting a windows partition and catting *.DLL (and other gigantic win32 binaries) to /dev/dsp ;) i think there's a CD of this somewhere, perhaps tigerbeat6 on<br><br> btw /dev/kmem sounds much better than /dev/urandom ;)

Matt -

I had an experience a few years ago that relates to this. The headphone jack on my machine was pretty much dead, but if I wedged the plug about halfway in, I could get one channel of audio in my headphone (L or R). When using this setup, however, I also picked up lots of soft buzzes, pops, and squeaks, which I soon realized was an audio representation of what was going on onscreen. E.G. When I dragged a menu bar, I would hear a particular buzz, and the pitch would raise or lower depending on the speed I dragged.

John -

You may have already seen this, but yesterday Slashdot had a posting in the same vein: Converting Images Into Sounds for the Blind.

OL -

Hehe, we had a lot of fun with this back in the 90's on my dorm :) We had our server in a dark cellar and scared the hell out of a freshman who we had told to go down and configure lpr for us ;) 2 hidden speakers playing a core dump at maximum volume almost made him crap his pants ;)

Rick.C -

lol, brings back memories from the load sequence on a c64

Chris Messina -

OSX users might be interested in Sound of an Image 1.0. From MacUpdate:

<blockquote>Converts images to music in an interesting way. See what your favorite pictures sound like!

Mac OS X 10.1 or later.</blockquote>

Aaron -

Couple of interesting things!

For Unix/Linux/*ux and Win32 users, there's a cute little toy called Flite which can replace 'say' in the pipelines above (even under Windows, if you're using Cygwin). It's a cut-down version of the Festival speech-synthesis package; instead of being probably as complicated as Apache -- more so in fact as more people use Apache -- to install and configure properly, it lives in a single executable. You only get one voice which sounds somewhat like a drunken Norseman, but go figure.

I was playing around with this and I did:

$ perl -e '@w = split / /, "Now is the time for all good men to come to the aid of their country."; print "$_\n"x1000 foreach @w;' > /dev/dsp

which gave a very interesting series of fairly clear tones, kinda chiptuney and very nifty.

Another neat trick is to put an & on the end of that and start it multiple times at different intervals; you get some interesting harmonics and distortion effects, kind of thing, and yeah.

Trousle Undrhil -

This is pretty neat! Has anyone found anything about converting an audio file into an image though? I have tried some searches, but I just keep turning up normal image conversion software. I would be very interested in seeing what some of my music would look like as an image. :) And, imagine if you could share your music just by pasting a link to a .jpg on your website? Someone gets the file and can play it back in Adobe Audition (used to be Cool Edit) or whatever the equivalent on OS X.


Isaac Grant -

Trousle Undrhil - as J points out above, check out: to see some visual breakdown's of some Aphex Twin tracks. I believe the page mentions the software used to visualize the music too.

Adriano -

I have a related problem to what you have here. I'm
interested in playing a time series, like what audacity displays when you load a wav file. The difference is that my input data file has two columns
the first one for the time and the second for the amplitude of the sound. What I want to do is play the
sound chaos for ex. The second column for me is some
variable I obtain from a map or the solution of a system of differential equations. The data could be
just one column as well (just the amplitudes).


base -

how to this in windows exactly?

base -

I mean, I know you can play datafiles from fx cool edit - but how to perform something like this where all data plays randomly in windows?