The MIDI trove: corpus-calibrated fences, mined vocabulary, corpus-fit harmony walk, ragtime (273->274)

Everything learned from the MIDIMAN Melody Kit (archive.org, ~130k files), distilled into committed capability — the trove itself stays off-repo (found/midi/ labeled rips; 120k bulk + 5GB corpus.db on the external drive).

• tools/fetch-midi-trove.sh / fetch-midi-bulk.sh — the fetch recipes

• tools/mine-midi.js — SMF parser + verifier-formula features + KK key detection (72% vs embedded sigs)

• tools/corpus-db.js — SQLite corpus: 120,652 files / 40M+ notes as integer blobs, extracted melody lines w/ honest mel_conf, 26-dim vectors (full-corpus cosine scan 111ms

• tools/mine-theory.js — FUNC_NEXT/POOL harmony tables from 86,301 deduped files / 4.4M diatonic transitions; --splice REFUSES tables that lose the held-out comparison.

▶ Play it: Perforated Afterlife → Smoke Arithmetic → Crossroads Paperwork — the three genres this change names, as one path https://stellate.app/?genre=ragtime&seed=7150&path=753.14457,292.16891,1036.22151&xdur=0.097

898bf64 https://github.com/aboard-io/stellate/commit/898bf64e423a2ff55cc3a3322b388752625395f9