Midra is an agentic prompt-to-code MIDI composition framework for editable and controllable music generation.
Midra is an open-source music generation tool that transforms plain English descriptions into complete songs. Instead of producing opaque audio files like typical AI music tools, it creates editable MIDI files that you can modify and reuse. The system works by breaking down your music request into a structured plan - figuring out tempo, key, chord progression, and instrument arrangements - then generating the actual notes for each track (drums, bass, chords, lead). It offers two generation modes: one using AI for creative variation, and another using deterministic rules for reproducible outputs. Users can interact through a web interface or command line, and the tool saves checkpoints at each stage so you can review and modify the composition process. The output includes MIDI, WAV, and MP3 files ready for use.
How It Works
You hear about a tool that turns your music ideas into actual songs - no music theory required, just describe what you want.
Open the app in your browser where you see a simple form to describe your music and a list of your past creations.
Type something like 'generate a 30-second cyberpunk boss battle background music with drums, bass, chords, and lead' - plain English, no technical terms.
Watch as the tool figures out the tempo, key, chord progression, and how to arrange each instrument part to match your description.
Let the AI create unique, creative note sequences for maximum variety and alignment with your prompt.
Use deterministic generators for stable, predictable outputs you can reproduce exactly.
Each instrument track - drums, bass, chords, and lead - is generated and assembled into a complete composition.
Download your creation as a MIDI file you can edit, a WAV file for high quality, or an MP3 for easy sharing - your music is ready to use.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.