Ever wanted to create some sound based on an image? This tool makes it possible! Generate your image into an interpreted sound snippet that is unique for each image.
This tool generates audio snippets from an image using Processing and the Earsketch Environment. The generated snippet depends on parameters that are taken into account such as the width of the image, percentage of bright parts, percentage of dark parts etc.
The main program is written in Processing. So you need to download Processing from the Foundation Website here.
Then clone the repository from github to your local computer.
Paste the target image in the data-Folder and open the GenerateCode.pde file with the Processing IDE.
Change line 9 to load the new target image:
source = loadImage("NewTargetImage.png")
By default the GeneratedCode.txt file will be overwritten. If you want to keep it change line 12 to output to another path:
generator.savetofile("data/outputpathfile.txt")
If you run the program a python code file will be generated and written to the date folder.
Copy the code in the file and go to Earsketch.
Go to “start coding” and select python as the language. Then paste your text to the python file and click on run.
Now the file will be interpreted and a sound will be generated. To play the sound press the play button on the top.