Wilson Gramer - Code Sonification
The media player is loading...
My final project for MU 2300 is a code sonification tool that accepts JavaScript code and converts it into music. My goal was to enable people to experience the structure of code without needing to have experience in programming. Thanks to the synthesizers available in Ableton Live, the music my project generates is slow, continuous and dreamy, and could work well as an art installation. It works by determining the complexity of a line of code and computes the individual pieces into a single number called a hash. This hash is then used to compute which chords to play and how long the notes should be.
This tool has a lot of potential beyond just code — in the future, it would be possible to provide not just code as input, but text, or a video feed, or even data from a motion sensor. If you'd like try it on your own, the GitHub repository has a few sample files, but you can input any JavaScript code you want. Every program is unique, so you can generate endless hours of music.
GitHub repository: https://github.com/WilsonGramer/mu2300-code-sonification
Sample files from the following JavaScript libraries available on GitHub: Babel, Express, OpenAI, React
Synthesizers used in Ableton Live: Sunrise Waves, MPE Mahogany Rose Organ, Spitfire LABS Glass Grand Soft