🌐 US-Proxy
id="body-softwares" class="foundation-grid action-show controller-softwares engine-home">

Inspiration

Most AI music tools start from a text prompt and hand you a finished song. You can't open it, you can't move a single hi-hat, and your own voice is an afterthought. I wanted the opposite: start with the vocal. You hum, rap or sing a few bars, and a producer builds the beat around you. It should listen to your tempo, your key and the gaps between your syllables, and then hand you a real arrangement you can edit block by block.

Kiroween gave me the costume: a haunted DAW. There's a tombstone transport bar, ectoplasm waveforms, and a "curse" button that drags your vocal into the underworld.

What it does

  1. Listen. Upload or record a vocal. The backend finds its BPM, key, brightness and where the syllables land.
  2. Produce. An LLM producer picks a genre feel, chooses 4 to 9 instruments and writes a bar-by-bar plan: which instrument plays which notes, and where. It can research an artist's style on the web first ("make it sound like late-night Atlanta trap").
  3. Edit. Every instrument is a row of blocks on a timeline. You can drag, resize, duplicate and mute them, or change pitch, pan, reverb, filters and drive for each instrument. You can also just chat: "drop the hats in the chorus, add a darker pad."
  4. Curse. Pitch-shift the vocal down and drown it in convolution reverb for a demonic double.
  5. Keep it. Save sounds and beats to your library, then export a stereo WAV of the full mix, the beat only, or the vocal only.

How I built it

Frontend: React + Vite + Tailwind. Every instrument is synthesized live with the Web Audio API, so there are no samples and no copyright questions. There are 36 built-in instruments, plus custom patches the AI designs from a parameter spec (oscillators, envelopes, filters, noise). Playback and export share the same routing: gain → stereo panner → output, with a send into one shared convolution reverb.

Backend: FastAPI + Librosa + Pedalboard.

  • Tempo: librosa.beat.beat_track on the onset envelope. Vocals often read at half or double time, so I fold the tempo into the genre's usual range (lo to hi BPM):

$$\text{bpm}' = \text{bpm} \cdot 2^{k}, \quad k \in \mathbb{Z} \text{ chosen so that } \text{lo} \le \text{bpm}' \le \text{hi}$$

  • Key: a Krumhansl-Schmuckler match. I build a loudness-weighted pitch profile from the chroma c and the loudness r of every frame t:

$$p_j = \sum_t c_{j,t} \cdot r_t$$

Then I try all 12 roots k in both major and minor m, and pick the key whose rotated template correlates best:

$$(\hat{k}, \hat{m}) = \arg\max_{k, m} \operatorname{corr}(p, \operatorname{roll}(T_m, k))$$

  • Brightness: the spectral centroid, computed from the same STFT as the chroma to save time.
  • The producer: Groq (openai/gpt-oss-120b) gets the vocal analysis, a genre profile (drum patterns, swing, typical chord roots), the instrument catalog and optional Tavily research notes. It returns JSON that I validate against a strict plan schema. If the LLM is down, a rule-based producer builds a beat from the same genre profiles, so the app never stops working.
  • Storage: Supabase Postgres for the library. Accounts use my own username/password system with scrypt hashes and HMAC-signed cookies.

Built with Kiro: steering files describe the architecture and the producer's rules. A custom MCP server exposes tools like analyze_vocal, design_instrument, validate_plan, research_reference and curse_vocal, so Kiro itself can act as the producer from the IDE. Hooks syntax-check the backend on save, and they keep the steering docs in sync with the MCP tools.

Deploy: Vercel for the frontend, which proxies /api to Render for the backend.

Challenges

  • Proxy timeouts. A full produce run (analysis + research + LLM) can take longer than the Vercel proxy will wait. I moved the work into background jobs that the frontend polls. It shows live stages ("Researching…", "Writing the beat…") and retries automatically if the free-tier server restarted mid-job.
  • Token budgets. Groq's free tier allows 8000 tokens per minute, and a 64-bar plan plus research is big. I estimate the prompt size up front from the length of the system prompt S and the user prompt U, and I reserve room for the answer:

$$\frac{\text{len}(S) + \text{len}(U)}{3} + 2200 \le \text{TPM} - \text{margin}$$

When a request is still too large, I shrink the answer budget and retry instead of failing.

  • A chatbot that lied. Early on, the chat would say "added a darker pad!" when the plan hadn't changed at all. Now I diff the old plan against the new one. If nothing changed, it retries once and then admits it honestly. The UI shows what actually changed, not what the model claims.
  • Cold, slow servers. Free hosting means cold starts and little RAM. I added a feature cache, switched from chroma_cqt to the much faster chroma_stft, warm up Librosa at boot, run research in parallel, and shrink uploads to 22.05 kHz mono for analysis.
  • Environment surprises. Python 3.14 wheels failed silently, and my antivirus intercepted TLS and broke API calls until I used the system trust store. One LLM provider kept returning 503s, so I removed it and kept a single provider with an offline fallback.
  • Making export match playback. The WAV is rendered in an OfflineAudioContext that copies the live mix exactly. It adds a 2.5 s reverb tail and is peak-normalized to about -1 dBFS:

$$g = \frac{0.89}{\max_{c,i} |x_c[i]|}$$

What I learned

  • Treat LLM output as untrusted. A strict schema, validation and a deterministic fallback make an AI feature something you can demo live.
  • A small amount of classic signal processing goes far. Tempo folding, key profiles and syllable onsets turn a vague prompt into a musically aware one.
  • Honest feedback builds trust. Showing the real diff instead of the model's summary made the chat feel more capable, not less.
  • Spec-first works. Writing steering docs and an MCP tool layer with Kiro made it easy to reuse the same producer from the web app and from the IDE.

What's next

  • Stem-aware mixing: side-chain the beat under the vocal.
  • MIDI export so beats can move into a full DAW.
  • More genres and community-shared instrument patches in the library.

Built With

Share this project:

Updates

Submission history