r/musicprogramming • • 20h ago

Machine learning mayhem

0 Upvotes

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.


r/musicprogramming • • 13h ago

I built a free virtual session drummer plug-in that works in any DAW (VST3/CLAP, Mac/Win/Linux) with Claude Code

Thumbnail reddit.com
0 Upvotes

r/musicprogramming • • 6h ago

I wanted to play some songs but couldn't figure out the notes, so I built a local AI transcriber

Thumbnail reddit.com
0 Upvotes

r/musicprogramming • • 18h ago

A new JSON-based format for musical scores

Thumbnail github.com
4 Upvotes

Hello everyone!
I’ve spent some time working on NTX 4 — a plain-text, JSON-based score format designed to be easily read by humans and, more importantly, generated by Large Language Models.

The Problem:
MusicXML is too verbose and consumes too many tokens. ABC notation is great for single melodies, but LLMs often get confused and break when handling complex multi-track polyphony.

The Solution:
NTX 4 wraps the track structure in strict JSON (perfect for structured outputs/JSON mode) while keeping the notes inside compact strings (e.g., [E2,B2,E3]:q for chords).

  • Pure Python: The reference compiler uses only the standard library (Python 3.9+, no pip required).
  • Production Ready: Converts directly to Standard MIDI and MusicXML 4.0, so you can drop it into any DAW or notation editor.
  • LLM Prompt Included: Features a step-by-step assembly workflow for LLM composers.

Open-source (MIT/CC0).