logo

ian jojo

portfoliocontact me

Curly Braces

tech musings from a junior Canadian web developer raised on punk rock.

generative music - take 1

generative music - take 1

December 15, 2022

ian jojo

ian jojo

my first of many experiments with generative music and code using tone.js and vanilla javascript

javascript

This week I’ve started to delve into a topic that I’ve long been fascinated by - generative music.
I’ve made many attempts at cobbling something together but this is the first time I have a finished piece to show - though it certainly leaves room for improvement and further exploration.
Each time you load the page the computer makes decisions about which notes of an E minor scale to play and when to play them. It will never be the same twice. Moving your mouse to the right side of the image increases the reverb for a dreamy vibe and moving back to the left turns it off; making things clean and sparse.
The graphical parts were done with help from the delightful p5.js library which I’m also just discovering.

https://lnkd.in/gEJxDhge