Using EXE files to create found audio

Discuss

35 Responses to “Using EXE files to create found audio”

  1. Jeremy says:

    And as for what causes the similar-but-different repeated sounds: My guess is macro expansion. If they have big-assed macros in their code, it will expand to the same instructions with different data. When the instructions are the same but the data is different, it sounds overall similar but not quite the same.

    That’s just my guess.

  2. Takashi Omoto says:

    Actually, the mistery of the regular patterns is pretty simple. You hear the random noise at the start, that sounds exactly like I expect unaligned machine code to be, ie, a random mess. Then the largest part of the file are resources for that application, including all the icons and buttons in uncompressed format – that’s what provides the regular “beats” as they draw the mostly empty and regular boxes. As you might expect, Paint has many of these, for several resolutions and bit-depths.

    • Anonymous says:

      One type of file nobody has mentioned that can make interesting listening is log files: there’s usually enough repetition of log messages for your ear to pick out a tone. I discovered the Windows 95 boot log sounded pretty interesting this while working on a song for my music composition class back in high school…

      Takashi has the right idea with the image resources, BTW. The arpeggio effect is because the image resources are icons, and each icon has several different size variants (from 16×16 through 64×64): the pitch is related to image width. Yes, I opened mspaint.exe in a resource editor to double-check. Code templates wouldn’t generate anywhere near that much data unless the programmers were doing something *really* wrong.

      You might see that kind of repetition with old shader programs that need to be parameterized and recompiled for performance — I’ve seen hundreds and thousands of variants generated in a shipping game — but not in plain ol’ C++.

      • Takashi Omoto says:

        bwcbwc, while grabbing a random piece of music and turning it into an working exe file is a literal monkey writing the complete works of Shakespeare, several bands released audio tracks that were actually executables (for 80′s microcomputers, mostly ZX Spectrum):

        http://www.kempa.com/2004/03/09/vinyl-data/

        This still carries on, with I think Apex Twin having odds and bits of Spectrum audio and I think a Beck song as well.

  3. MandoSpaz says:

    This takes me back. In the college dorm, where we were all looking for various “entertainments” from time to time, we hit on placing a programmable calculator, running a looping program, on the turntable of a stereo system with a tape deck and a tuner. Finding an appropriate station (where nothing was actually being broadcast), we would hear the electronica piping out of the calculator. Some of those calculator music tapes were actually fairly listenable. I believe the regular beat attributable to the 33 1/3 rpm input oscillation was helpful, and the loops of the programs added a nice bit of hemiola to the mix.

  4. Anonymous says:

    Aphex Twin did this a while ago

  5. Anonymous says:

    that’s some lazer crunk ish. all it needs is an 808, lil jon on backing vox and some candles and you’ve got the soundtrack to a very sexy time.

  6. Anonymous says:

    Whoa, listening to this brought on flashbacks to long gone days working maintenance on NORAD support mainframes. Thousands of neon bulbs (+65vdc forward bias to illuminate) lighted their refrigerator-sized cabinet faces and units were tested via magnetic tape routines.

    Midnight-shift room lighting was always dimmed and speakers cranked to maximum as maintenance tapes looped through two-hour test routines. We’d sit as neon flashed in choreographed marches following the beat of each test as subsystem audio sang strange but individually memorable test-chants.

    Listening for system problems in test rhythms & watching those ones & zeros dance around the room was an experience I will never forget. My kids don’t understand what I mean when I tell them computers haven’t been the same since they took out the neon.

  7. Anonymous says:

    Most of the windows games sound the same. Internet explorer exe files make some interesting noises

  8. Anonymous says:

    Fun. I had a simple PHP script on Slashdot (back in 2003)– http://yro.slashdot.org/story/03/10/03/1810236/What-Counts-as-Music-and-Why — it simply prepended the appropriate WAV file header into the file, and added .wav at the end of the filename.

  9. gerbula says:

    Dirk Gently’s Holistic Detective Agency, by Douglas Adams, uses this idea

    • AndrDrew says:

      Checked the comments just to see if someone had mentioned Dirk Gently yet. That reveal was a sublime moment in fiction.

  10. mausium says:

    I just used Scream Tracker 3 for this.

  11. I, Lion says:

    Slightly related, slightly not.
    The number pi adapted to music:
    http://www.collegehumor.com/video:1948828

  12. bwcbwc says:

    Conversely, I wonder what would happen if you stuck an exe header on say Pink Floyd’s Dark Side of the Moon and tried to run it? I wonder if there are any musical (or video) works that can run like this without actually crashing.

  13. kylerconway says:

    That was surprisingly excellent. Can anyone understand (and possibly explain) why there are entire sections of repetition w/ variation?

    • bizwack says:

      Most programming is based on If/Then and Do/While statements, testing for different input and deciding what to do. In this case, I’m betting that many of the statements that make up Paint are repetitive with minor variations. Since the executable is the compiled result, it would be changed slightly, but I believe that some of the original structure would be maintained.

    • dragonfrog says:

      Here’s my guess at the interesting repetition-with-variation effect

      Often a program will contain routines for doing a whole bunch of things that are very similar but not quite the same (in the case of MS Paint, e.g., dragging the mouse with the paintbrush tool, dragging the mouse with the pencil tool, dragging the mouse with the rectangle tool, etc).

      The godawful and unmaintainable way of writing that would be to copy and paste the body of the routing, and edit each copy for the specific tool. When compiled, this could result in a whole bunch of nearly identical sections of executable code.

      The more elegant way of writing it would be to have functions that try to isolate the common elements of all those routines, and then the similar routines would handle the specific unique parts of their actions, and all reference the one routine for common aspects. This way of writing the code is much more maintainable – a change to the common aspect of the routines can generally be made once, rather than in X different places.

      You might expect this to eliminate the repetitious nature of the compiled code, but it wouldn’t always.

      There is a performance cost associated with jumping to different locations in memory – the CPU will have queued up sequential operations in very fast memory, and jumping to a different spot will often require it to throw away everything it has queued, and refer to lower-speed memory to get the new instructions.

      For that reason, compilers will often make executables that reverse the elegant coding practices I described above – they will stick exact duplicates of the same code in each place where the a common function is reference, so as to reduce the frequency of control flow jumping to different memory pages. This can speed up performance, at the cost of having larger executable files.

      • fnc says:

        That’s what I was thinking. Lots of functions that look the same, possibly due to (as mentioned above) macro expansion or using a LOT of inline functions.

        Or possibly a lot of only slightly different arrays.

        It’s interesting to consider that a modern CPU is consuming this “data” at greater than gigahertz speed while the audio player is relatively plodding along in the kilohertz range.

  14. chdunk says:

    We used to do this when we were kids. Our Atari 800 had a cassette tape reader as an input device, and our only game for it, Zaxxon, sounded excellent when we played it through our tape recorder.

  15. Variable Rush says:

    This is awesome.

    I once played a .zip of an MP3 in a media player and all I got was 13 seconds of a weird ethereal song.

  16. Anonymous says:

    RGB Musiclab (http://www.kenjikojima.com/rgbmusic/index.html) is a free program for mac and windows that allows you to change images into music. It’s pretty fun to experiment with.

  17. Anonymous says:

    Back in the 90′s I would import .exe files and anything else I could into Photoshop for creating interesting visual noise to then layer on top of what I was working on.

  18. Nadreck says:

    And do sundry works of music contain found programs?

  19. Talia says:

    Heh. Further evidence I’m too tired, I read that as “Ms. Palin.”

  20. kqih says:

    Amazing.

    0:50 sounds exactly like TRON SCHERZO on Wendy Carlos soundtrack for Tron 1982.

    Hear it : http://www.youtube.com/watch?v=G2FMbZq-UDQ

  21. paradesign says:

    Wonder if any scans of great works of art contain secret music?

    We know it works the other way…
    http://www.philreeve.com/imageServer.php?img=aphex.jpg&text=Spectral+analysis+of+track+2+from+Aphex+Twin's+Windowlicker+LP

  22. stAllio! says:

    yep, if you open binary files as audio, you can get some pretty cool sounds. not just EXE files, either: i personally recommend uncompressed image files.

    here’s an in-depth blog post i wrote about this back in ’09, complete with instructions on how to do it and even how to take it a step further!

  23. jornin says:

    There is a Japanese named Ryoji Ikeda who has been doing similar work converting data into video and audio works. I’m not really sure of what techniques he is using but his stuff is really interesting.

    I have been listening to his Dataplex CD while wandering around the city at night recently. It makes a normal night out seem like a Neil Stephenson novel.

  24. redsquares says:

    Converting images to audio is my bread and butter.

    Family portraits sound weird.

  25. Alvis says:

    But how to parse the data? PCM, I presume. 8-bit? 16-bit? Stereo? Mono? 22, 44, 48kHz?

    I’m reminded of those Bible code nutcases who are looking for a certain kind of result, then tailor the steps used to analyze the data until they get what they want.

  26. Jeremy says:

    Tried this with Windows Explorer (Windows 7, 64-bit).

    And towards the end it actually DOES sound somewhat like a sad trombone!

    Here’s an excerpt: http://www.duckwizard.com/downloads/explorer_as_audio.mp3

    Imported as 8-bit signed PCM, no endian, 22050 Hz

  27. Anonymous says:

    Alva Noto does this on Unitxt

Leave a Reply