r/musicprogramming • u/danja • 20h ago
Machine learning mayhem
I've been playing with generative systems quite a lot recently, two things in particular, both rendered as VST plugins, may be of interest here.
TL;DR : a short video - https://youtu.be/gq9NECUERKw
The Stochastic Parrot for MIDI is a tiny GPT trained on an open dataset of midi files. It behaves just like chat AI but instead of text it does midi.
https://github.com/danja/sp-midi
It kind of works. Hardware issues have meant I've not yet trained it on the full dataset, and the VST interface is primeval. But it was totally doable, based on femtoGPT, a Rust port of Karpathy's nanoGPT.
Training is only in the order of hours on a CPU, generation is clunky, I've not got the DAW transport bbt properly in place yet.
The other thing, Genie, is based on Differentiable DSP. Stick the SP algorithms in a neural net, why not.
My extension is to use a genetic algorithm to provide alternate nets (synths or effects) the user can choose between, and breed.
https://danja.github.io/downspout/plugins/genie/
Both are in early stages of development, but IMHO ripe for having fun.