[KC]

ernie

OCT 2026 · JUCE / FASTAPI / ELEVENLABS / REACT + ELECTRON · TEAM OF FOUR · HUM→MIDI, BEATBOX CLASSIFIER, ARCHITECTURE · audio · software

A voice agent for a producer working inside Ableton Live. Put the ERNIE plugin on the master bus, press play, and ask it for mixing feedback: it captures the track into a bounded RAM buffer gated by the DAW transport, measures it (loudness, crest factor, low-mid buildup, stereo sub, over-limiting), and reads the notes back in its own voice. Ask it for a warm pad in A minor at 120 and it generates one; ask for a bass sample and it ranks your library by tempo, then key; hum a line and it comes back as a .mid file and a new MIDI track in Live. Built in six hours by a team of four at Shipyard — the Tech@NYU Buildathon × MLH Hacktoberfest Hack Day, New York, October 24, 2026 — where it took first place in the ElevenLabs Voice AI track.

The architecture is a set of contracts. A JUCE plugin runs a loopback-only control server; a FastAPI backend owns capture, analysis and generation; an ElevenLabs Conversational Agent in a React/Electron window calls client tools — listen, generate, find samples, record hum — that call the backend. The agent never touches the plugin or Ableton directly, and the API key never leaves the server: the app asks for a short-lived signed URL. Six build hours make interfaces the first thing you write, not the last.

# foldback/hum2midi.py — beatbox hit classification
HIT_WIN_S = 0.09            # feature window after each onset
GATE_RATIO = 0.25           # drop onsets whose window peak < this * loudest hit
MIN_GAP_S = 0.2             # no-tempo path: drop an onset within this of a louder one
SLOTS_PER_BAR = 16          # known-tempo path: 16th-note grid, strongest onset per slot wins
MAX_BACKTRACK_S = 0.05      # an onset starts at most this long before its strength peak
PROTO_KINDS = ("kick", "snare", "hat")
CAL_BARS = 2                # calibration: one 2-bar clip per class, recorded with the click

My part was the hum→MIDI and beatbox→drums path, and the architecture document the team built against. Beatbox is the harder half: a mouth is not a drum machine, so the classifier is calibrated to the performer — one two-bar clip per class, recorded to a click, from which it builds standard-scaled prototypes of duration, spectral centroid, band energy, attack and zero-crossing rate. Onsets are peak-gated and debounced; at a known tempo they snap to a sixteenth-note grid, strongest hit per slot. No model, no API — librosa and mido, so it runs offline and in real time. The calibration flow was still being hardened when we demoed; the prototypes in the repo are the ones recorded on the day.

Source: github.com/kristyn-c/ernie (MIT) · the MLH submission.