Frank

The Frankenstein of music production. Come with a song in your head and no music training. Leave with a song you made.

Frank is a web studio that stitches a songwriter, producer, arranger, session player, recording engineer and mixer into one conversation, all working on one persistent song history. It is for people who can sing but can't play an instrument, read music, or afford a producer. They take a song from idea to MP3 and stay in control of every decision. It is not a prompt box that hands back a finished track. You hear a draft, say what is wrong in plain words, and hear the song actually change. Built and deployed by one person on free-tier infrastructure, with graceful fallbacks for quota and service limits.


Inspiration

Anything I look at can turn into a melody or a line of lyrics in my head. I have a good voice and a head full of song pieces. I have no musical training, I don't play an instrument, and I can't pay a producer.

There are two doors into making music, and both are locked for people like me:

  • AI song generators hand you a finished track from a prompt. I had a sound in my head and got something adjacent. I couldn't say "drop the keys in verse 2 and leave my chorus alone" and watch it happen. The decisions that make a song yours were made by a model in one shot.
  • Studio software assumes you already speak its language: BPM, compression, MIDI, sidechain. That's months of vocabulary before a single creative decision.

What I wanted was the experience of a producer, a session player and an engineer working for me, without becoming any of them. So I built that experience, Frank, a true Frankenstein. It isn't libraries stitched together for show. It stitches together the separate disciplines of making a song, each with its own tools, into one creature that listens and talks back.

Worry about your song, not the tools.

What it does

A studio of seven rooms that share one song, one record and one history, joined by a persistent Song Strip.

Room You Frank
Words Write lyrics, or speak a voice memo A lyric editor shows each line's beat count, strong and soft syllables, and rhyme families by colour, using the CMU Pronouncing Dictionary offline from an on-disk SQLite index. Whisper transcribes memos as a suggestion, never auto-inserted. Your words are never overwritten.
Feeling Describe a mood, hum, tap a rhythm, share a photo, or start from "right now" Directions appear as cards on a listening bench. When Frank hears your hum clearly, it sets the key, and the conversation cannot overrule your ear.
Music Say "fuller chorus", "the bass is too busy", "a different take entirely" 19 typed operations (busier, sparser, looser, tighter, bigger, swap sound, move, repeat, slower, faster and more) edit the arrangement section by section. Seeded variation means "another one" is actually another one. If you sang, the music is built around your singing: your pulse, your bar lines, and chords chosen bar by bar to fit the notes you sang.
Voice Record several takes, over the beat or in silence A guide voice sings your words on your tune so you hear how the line goes. Takes are lined up with the beat and tuned toward your song's own notes, with your vibrato kept and no note moved more than one step from where you sang it. Beat bleed is subtracted using the original beat as a reference, and the result is kept only if the beat drops without hurting your voice. The best phrases from each take are stitched into one, and a harmony follows the chords under it.
Blend Say "vocals up", "warmer bass", "make the chorus hit harder" Real processing on each part, so "the piano's too loud in the bridge" changes only the piano. Ask Frank to listen and he tells you, in plain words, the few things he would change, and marks the ones his own measurements confirm.
Finish Listen, compare, download An intent check asks, in your own first words, whether the song matches what you described before your first download. Frank masters to streaming loudness or matches a reference you supply. You download the song, the separate parts, or the notes as MIDI, with the credits every ingredient asks for.
Yours Preserve your original words, images, preferences, and the decisions you've accepted or rejected The brief every specialist reads. "Make it sound like [an artist]" becomes a feeling in your own words. Frank never imitates an artist you name.

These are not just UX ideas. Three rules hold everywhere, and code enforces them, not prompts:

  1. A change you can't hear is refused, not reported. apply_audible re-composes the whole song's score before and after your request, including every note and every part. If the two scores are identical, Frank says "That's already how it sounds there, so nothing would change." A lot of AI apps will tell you they did something without checking whether anything happened. Frank checks the music before it claims a change.
  2. Nothing is overwritten. Every action creates a new version, and takes, beats, mixes and lyrics can be compared and restored. Frank doesn't just save files. It keeps your creative decisions and makes experimenting reversible.
  3. No jargon reaches you. A guard runs over every model reply: BPM becomes "speed", reverb becomes "space", compression becomes "smoothing", and Hz, dB, MIDI, LUFS and the rest are removed outright. A CI checker scans the UI too, and a hook scans prompt files on save.

How I built it

One person, a 4 GB laptop, free-tier infrastructure.

  • Frontend: Next.js 14, TypeScript, Tailwind, a rich-text lyric editor and a waveform view, state in Zustand, on Vercel.
  • Backend: FastAPI in Docker on Render's 512 MB free instance, with FluidSynth, FFmpeg, Rubber Band and sfizz built into the image.
  • Data: Supabase with Postgres, row-level security on every table, private storage behind signed URLs, Realtime for job updates, and auth.
  • Intelligence: Groq for conversation with a measured fallback, Whisper for voice memos, and two Hugging Face Spaces for heavier work.
  • Background work: heavy operations run as asynchronous jobs claimed from a shared Supabase Postgres queue using FOR UPDATE SKIP LOCKED, so the API server and the remote GPU workers never process the same job twice.
  • Making it fit. Three separate measurements on that 512 MB server: rendering section by section instead of all stems at once cut peak render memory from about 800 MB to about 240 MB. After a beat and a listen, the running server held about 353 MB resident, which memory reclamation (malloc_trim) brought down to about 277 MB. And reusing one shared synthesiser session cut a full beat render from about 81 s to about 10 s. The first two made the workload fit, and the third made it fast.

The stitched body

The Frankenstein theme is the architecture. Frank has hands (musical knowledge and production), ears (audio measurement), organs (specialised neural models), a team (ten production specialists), a memory (intent, taste and decisions), and a nervous system: one shared song record with version history that every part reads and writes. Each part is unusual on its own. The hard part wasn't assembling them. It was making them work on the same song, respect the same creative intent, and preserve the same history.

High-Level Architecture

High-Level Architecture

Browser Job path

High-Level Architecture

The hands: a music engine built from real music

The hosted music models I first planned around weren't available on a free budget. So I mined public datasets offline, shipped the resulting statistics as small JSON files, and built a procedural engine in which every musical decision is explicit, inspectable and editable:

Part What it contributes
Chordonomicon (CC BY-NC) How often real songs in a given style use each chord loop, per section and mode. Progressions come from statistics of real songs.
Groove MIDI Dataset (Google Magenta, CC BY) Per-style, per-instrument timing offsets and accents of real drummers. The "tighter / natural / looser" control is a distribution measured from human playing.
Lakh MIDI (dataset CC BY; the songs inside have their own rights) Which instrument families play in which sections across thousands of songs. Why a chorus is fuller than a verse is data, not a guess. Only aggregate statistics are used, never the songs.
Song Describer (CC BY-SA) Real caption-to-feeling mappings that turn "hushed, late-night" into musical settings.
CMU Pronouncing Dictionary Syllables, stress and rhyme, offline on disk.
Music theory in Python Scales, voice-leading that picks inversions and octaves so the chords move as little as possible, and a Viterbi best-path search that picks each bar's chord to fit the notes you actually sang.
FluidSynth + SoundFonts, and sfizz with CC0 recorded samples (VSCO-2), built from source in the Docker image Real instrument audio.
librosa (pYIN) Pitch tracking for hums and vocals, chosen by measurement: 0.98 vs 0.81 F-measure against Basic Pitch on synthetic hums with known notes. Basic Pitch stays switchable.
pedalboard, Rubber Band, FFmpeg, Dragonfly Reverb, LSP plugins Effects, studio reverb, pitch and time, encoding.

None of this is retrieval. A dataset is not used to paste a familiar drum pattern or chord loop. Human drummers' timing and accents become controllable distributions, and observed instrument-section relationships become arrangement priors. The singer's melody is authoritative: Frank detects your notes and phrases, searches for the chords that support them, and adapts the accompaniment to you, not the other way round.

The ears: a Listener that measures instead of guessing

Thirteen signal-processing functions (loudness, brightness, band shares, onset density, chroma similarity, timing against the beat, tuning in cents, noise floor, clipping) feed eleven plain-language findings: the chorus doesn't lift, the intro copies the verse, the voice is buried, timing is off, tuning is off, the melody wanders, it's clipping, it's noisy, it's flat. When someone says "something feels off", Frank measures, says what it found, and offers two or three directions you can hear before choosing. Each is verified to apply and to actually differ. When nobody can tell what's wrong, it offers experiments that change exactly one thing each, and your ears decide. The Listener measures the signal. It doesn't judge whether a song is good, and that judgement stays with the person.

The organs: two GPU Spaces written for this project

frank-ears on Hugging Face ZeroGPU runs CLAP (matching sound to words), mood and style classifiers, Audiobox Aesthetics, structure and chord analysis with madmom, pitch tracking, Matchering (master to match a reference) and DeepFilterNet (denoise a take). frank-hands runs an Anticipatory Music Transformer that writes a part around your tune, a DiffSinger guide voice, DDSP timbre transfer, which plays your hum as a violin, and Stable Audio for atmosphere: a bed of rain, a room tone, a texture under the song. Every Space call has a CPU or plain-words fallback, so a day with no GPU quota still leaves a working product.

The team: ten specialists in one model call

The free Groq tier allows about 6,000 tokens a minute, so a router-plus-specialists chain was unaffordable. Instead, one call carries role cards (the songwriter "disagrees when a chorus has no line worth repeating"; the beat-maker "never makes the beat louder than the voice"). The model picks who leads, and code enforces what a model can't be trusted to: plain language, a mention rule (a specialist is named at most once in three replies), and that only allowed actions run. Every turn is stored, so the room remembers when you reload.

The memory: your intent, and taste only after repeated evidence

Frank keeps your original intent, in your own first words, and the Finish room checks the finished song against it. It keeps taste too, but carefully. A preference is stated only after three or more signals across two or more songs. Two contradicting signals retire it. What you say about yourself ("I hate autotune") counts at once. You can see, edit or forget it, and forgetting really deletes. Per song, an append-only song record holds six facets (intent, feeling, melody, structure, references, identity) with parent-linked versions and a decisions log. This shared record is what lets the songwriter, arranger, session player and mixer work on one song instead of behaving like separate chatbots.

Provenance and ethics are features

Every organ that shaped a version records a plain line and its licence's attribution, and the Finish room shows the song's credits. I read third-party terms before building. I rejected a preview-audio source whose terms forbid AI use, no copyrighted music is stored, and reference songs are either Creative Commons or the person's own uploads, analysed in memory. A dataset's headline licence and the rights in the songs inside it aren't always the same, so I use only aggregate statistics from them and record attribution for every ingredient. Chordonomicon's licence is non-commercial, which suits a prototype. A commercial release would need a different source or permission. A region check keeps one optional model from being called for users in regions where its terms don't allow it.

How I used Kiro

Kiro wasn't an autocomplete. It was the engineering process, and the /.kiro directory holds all of it.

Kiro gave me speed. I gave it discipline. Three things made the difference:

  • I measured my own safeguards. I tested my first four prompt-based hooks and deleted the three that caught nothing.
  • I made the agent prove its work. Spec Keeper refuses to accept a task without evidence, and a mutation check breaks my code on purpose to prove the tests can fail.
  • I closed the loop from the running product back to the agent. My own MCP server, frank-listener, lets Kiro measure the audio it just changed.
Kiro feature What I built What it caught or changed
Specs 26 specs (requirements, design, tasks) with 489 completed tasks, each citing its evidence, plus a roadmap with a coverage matrix tying every founder decision and demo story to the spec that owns it The auth spec, written before any code, found that only one router checked ownership, so any signed-in user could open someone else's song by ID. Ownership became a mount-level requirement and two real accounts verified it, 17 of 17 checks. The voice-to-export spec found a false requirement: a new take didn't clear an old comp, so the comp silently beat the newest recording.
8 custom agents Spec Keeper, Producer (runs the others in order and stops at the first objection), PBT Author, Listening Lab, Frank Code Reviewer, Integration Tester, Plain Language Auditor, Database Steward Spec Keeper's first run unticked 4 tasks with no evidence. The reviewer found memory growing with hum length, so I added a 60-second cap and one analysis at a time. The Integration Tester reproduced a duplicate-root bug in the live database in 7 of 8 runs; a partial-unique-index migration fixed it, 8 of 8 after.
9 hooks I measured my first four prompt-based hooks and deleted the three that caught nothing. The survivors are deterministic scripts: a PreToolUse guard that blocks secrets and audio libraries in the frontend, three Stop checkers, property tests after each finished task, and listening and plain-language checks on save The guard blocked two real writes live. The architecture checker found 2 inline-FFmpeg routes the prompt hook missed (errors 2 → 0). The listening hook renders a fixed reference song after every engine save and diffs the Listener's findings. It caught "the intro became a copy of verse 1" on the day the Lakh arrangement data landed.
10 steering docs Five always loaded (product, tech, structure, conversation, project) and five loaded by file match (audio, design, Feeling, deployment, auth) Steering is a runtime contract. A checker fails CI when steering names a library that isn't installed. When I rewrote steering from a full code audit, it found 6 specs and 10 steering docs that had drifted from reality, and I corrected them from the code, not the other way round.
4 MCP servers, one written for this project Supabase, Context7, Playwright and frank-listener Supabase's advisor revealed that all 12 tables initially had row-level security disabled, which hand-rolled checks never showed. I enabled it on every table, and song ownership is separately verified by the 17-of-17 two-account check above. Context7 corrected my guessed pedalboard signature after a real TypeError. Playwright found an unreachable songs page and a foreign song that still rendered the studio.
Property-based testing 485 Hypothesis properties inside 639 backend tests, 44 fast-check frontend tests, and a mutation check (23 mutations) that breaks the code on purpose and expects the test to fail Properties found what examples never did: tempo: Infinity from an LLM reply crashed the Feeling room, a 2-sample take difference made a zero-length comp segment, and mastering pure silence aborted FFmpeg's loudness normaliser. Three tests were too weak to fail against their mutation, so I strengthened them.
1 Power frank-sound-engineering packages the Listener MCP and skills It is how the Listener reaches the agents that change the engine.
IDE and CLI The IDE was my working surface. I also drive Kiro CLI headless with scripts/listening_regression.sh The script renders the fixed reference song and diffs the Listener's findings against the last good run, so an engine change that quietly flattens the music fails before I ever hear it.

Kiro that can hear. A coding agent can't listen to music, so I gave it ears: the Listener's own measurement code as an MCP tool, with measure_file, find_issues_file and compare_files. "The intro copies the verse" is a tool finding, not a hope. But the Listener measures signal, not taste. The Listening Lab agent covers that gap with blind A/B sets for me to judge by ear, always with a control pair of two identical files, so a "preference" between them exposes the test as noise.

Experimentation, including negative results. I ran nine live calls against an Anticipatory Music Transformer, measured them, and traced the poor results to my own invocation, which was clipping the first five seconds of melody, not to the model. The whole experiment, failure included, is kept in experiments/amt_compare/. Several blind listening rounds on engine changes ended in "same on every pair", and I recorded that too instead of ticking the task.

Spec-first vs retrofit, measured. My first specs were written after the code and had drifted: they described a hosted music model I'd swapped out and a pitch library I'd replaced. Converting them to Kiro's native format exposed both. The specs written before the code (auth, private audio, job reliability, the song-engine rework) found real bugs before they shipped. That difference is the whole argument for spec-driven development.

Honest gaps. I did not use Kiro Crew or Kiro Web.

Challenges I ran into

1. Making "bigger chorus" change the audio. A friendly reply isn't enough if the waveform doesn't move. My code reviewer found that section gain changes were stored but never applied to the render. The system could say it had changed something when it hadn't. That broke Frank's central promise, so I turned it into a rule enforced by apply_audible.

2. No GPU, no budget, no hosted music model. I built the procedural engine from datasets instead. Rendering every stem at once peaked near 800 MB and got killed on a 512 MB server. Rendering section by section cut the peak to about 240 MB.

3. Making Frank understand a hum. The key used to come from the conversation about a feeling, not from the notes the user hummed. My own end-to-end test produced a bad song, and I stopped coding to find out why. Now a hum sets the key, and a guard stops the language model from overruling it.

4. Making music that is actually musical. A procedural engine will not out-sound a model trained on millions of recordings, and I'm not claiming it does. What it gives up in polish it gains in control and honesty. That is why the Listener exists: I don't trust my own ears alone, and I don't trust an agent's report either. The agent once told me a feature wasn't used, and the code showed it was implemented and the doc was wrong.

Accomplishments that I'm proud of

  • A product promise that code guards: apply_audible refuses to claim a change you can't hear, history is append-only, and a no-jargon filter runs on every reply
  • A melody-first engine built from four public music datasets, where the accompaniment is chosen to fit the notes a person actually sang
  • A real recording workflow: guide voice, tuning that keeps your vibrato, beat-bleed removal, and phrase-by-phrase comping across takes
  • A seven-room studio that works from a hum, words, a photo or the weather, shares one song record, and credits every ingredient
  • Kiro used at depth: 26 specs with 489 evidence-cited tasks, 8 agents, 9 hooks, 10 steering docs, 4 MCP servers including one that lets Kiro measure its own output, a Power, 639 tests and a mutation check
  • A workload that fits a 512 MB server, and a beat render that dropped from about 81 s to about 10 s
  • All of it built by one person on a 4 GB laptop, deployed on free-tier infrastructure with graceful fallbacks

What I learned

Functionally correct and creatively correct are different things: an operation can succeed, return valid audio, and still not deliver the change you asked for. That's why the refusal rule had to live in code. The best job for AI in music isn't generating the final output but understanding what a person means, turning it into typed actions, and helping them judge the result. And AI-written code and AI-written reports both need independent verification. A green build and a confident answer are not proof.

What's next for Frank

  • Derive the opening chords from the hum the way a pianist would, and treat your corrections as more evidence instead of overwriting the first guess
  • The musical fingerprint shaping more of the sound, with richer styles
  • Co-writing with other people: instrumentalists, vocalists, songwriters
  • A full production history you can branch, compare and reproduce

Frank isn't about replacing the creativity of making music. It's about removing the technical wall between people and it.

Built With

Share this project:

Updates

Submission history