r/musicprogramming • • 2d 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.

0 Upvotes

3 comments sorted by

2

u/Bread4Dayz 2d ago

I like your idea for training a GPT model on MIDI sequences. It seems like MIDI GPT models as a whole are more experimental for now, and so I’m excited to see where people go with these. Do you have any directions in mind for where you want to take yours?

1

u/danja 2d ago

I have no idea where it goes. Posted to Reddit looking for inspiration...

1

u/Bread4Dayz 2d ago

Also cool idea using a genetic algorithm with DDSP. Going beyond sound exploration I was wondering if this might be good for sound matching, for example recreating a synth wave from audio using basic sound wave manipulations