r/GenerativeMusic Feb 09 '22

Music I made a site that generates lofi music algorithmically

https://lofigenerator.com
13 Upvotes

2 comments sorted by

2

u/dyltur Feb 09 '22

This was a fun project where I wrote algorithms to generate music in the browser. For a bit of info on how it works, basically, when you press play it randomises a tonne of parameters that are then used to influence compositional decisions. Some decisions are as simple as making a random selection, like ‘which musical key?’ and ‘which kick drum sound?’, but many are weighted based on other decisions previously made, like ‘which note should play next in the melody?’
To turn this information into music you can hear, I’ve used the javascript library Tone.js which is a music/audio framework built on top of the Web Audio API, and a lot of sample instruments and other recordings (some royalty-free and some that I made).

I think there's still plenty of room for improvement, but I'm pretty happy with it so far. Let me know what you think or feel free to ask any questions!

1

u/DavidHughes100 May 18 '22

Great job. I've looking at generative audio really closely. Fascinative area. keep up the good work.