|
|
|
|
|
by mr_dbr
6094 days ago
|
|
I present to you, Ubuntu in D Minor: http://www.mediafire.com/?sharekey=bc9a7de093071754ed24a2875... ...it's not actually in D Minor, but it's certainly Ubuntu (ubuntu-9.04-desktop-i386.iso.torrent, converted to a proper, listenable MIDI file) Only done the encoding just now.. Basically the code loops over each byte in the file, ord()'s it, creates a note with that value and advances to the next beat.. Decoding should be simple enough, but the simple MIDI library I was using only creates MIDI files. One slight problem is the file is about 5-6 hours long, so I don't think we'll be sharing torrents via background music on Youtube videos quite yet.. A more time-efficient way to pack the bytes into notes is definitely possible (currently it only plays one note per time-slot), but that would have taken far longer than I wanted to spend on this... The Python code, including the required smidi.py module: http://gist.github.com/202593 |
|