Friday 16 July 2010

A First Attempt

Here is our first attempt at an image sonification program. To run it you'll need Python along with the numpy, scipy and matplotlib libraries. You will also need Max M's midi library.

There is also a GUI (literally a front-end to our python script) which was written using qt. The easiest way to compile it is probably using the wonderful qt creator IDE.

The python script and GUI should run smoothly on windows mac and linux.

Gui: http://www.mediafire.com/?ptvg40smt119v91
Python Script: http://www.mediafire.com/?97kyodc5ep9qreo

How the script works:
- You give it a couple of points on the image, and a spline is used to interpolate between the points and give a nice smooth 'scanline'.
- The RGB value or grayscale value at each point on the 'scanline' is analysed, and representative Pitch, Volume and Length are generated.
- The pitches are squeezed onto whichever scale has the most pitches in common with those of the image, and the output is written to a midi file.

No comments:

Post a Comment