A bright pop chorus hook that opens on a repeated note, climbs in bar three and peaks on a long high note before it falls back home.
Generate a melody
Choose the musical settings. The MIDI Agent opens with your melody brief ready to send.
Melodies made from these settings
Each example is what the MIDI Agent wrote from the settings and description shown. Play it, then load the same settings into the form above.
An Irish session tune on the flute: running eighth notes, little rolls and turns, and a second phrase that answers the first before it comes round again.
A laid-back 12-bar blues head with call-and-response licks, blue notes on the strong beats and plenty of space between phrases, like a late-night club set.
AI Melody Generator
From a few settings to a melody in your DAW
Set key, scale and mood
Pick the key, a scale such as minor or major pentatonic, a mood, 4 to 16 bars, a tempo and the instrument. Add a line about the melody if you like.
Send it to the MIDI Agent
The MIDI Agent opens next to a piano roll with your brief ready. Press send and it writes the notes into the editor.
Play, tweak and export
Listen back, ask for changes in plain words, like "make bar 4 climb higher", then download a standard .mid from the editor's File menu.
A MIDI Melody Generator for Producers and Songwriters
One melody line, one track
Key, scale and mood up front
Exact length and tempo
Edit it by asking
Vocal melody generator
Standard .mid export
Melody Ideas for Anyone Who Writes Music
When the chords are done and the top line is missing.
Beatmakers and producers
Get a lead or hook line in the beat's key and tempo, drop it in the DAW and pick a better synth.
Songwriters
Sketch a vocal melody idea for a verse or chorus, then write the lyrics to fit it.
Game and video composers
Quick themes in a set mood and length for a level, a loop or a short cue.
Students and teachers
See how a melody behaves in dorian, blues or harmonic minor, note by note in a piano roll.
Questions about the AI melody generator
Your settings become a short brief for the MIDI Agent in the AI MIDI generator. When you send it, the Agent writes the melody note by note into a piano roll in the key, scale, length and tempo you chose.
Signing up is free. Each message you send to the MIDI Agent uses 10 credits, and the Free plan includes 120 credits a month that are shared across Lacuna. Choosing the settings here uses no credits.
The brief asks for one monophonic track. If the result stacks two notes at once or adds another track, ask the Agent to keep only the melody line, or delete the extra notes by hand in the piano roll.
Choose 4, 8, 12 or 16 bars of 4/4. Within 16 bars the Agent writes the notes itself; you can ask it to continue the melody afterwards.
Yes. Open the editor's File menu and choose Download MIDI File to get a standard .mid you can drag into any DAW.
Yes. Pick the voice-like lead and describe the line, for example a chorus hook that stays in a comfortable range. You get the melody as MIDI to sing over; it doesn't add words or a sung voice.
Yes. Ask in plain words, like "make the last two bars resolve lower" or "add a pickup note", and the Agent edits the notes in the piano roll. You can also edit notes by hand.
Yes. Download the .mid and use MIDI to song to have it sung and arranged with vocals and a backing track.
More MIDI and songwriting tools
Generate full multi-track MIDI pieces and edit them with the MIDI Agent.
Build the chords the melody sits on, and download them as MIDI.
Turn the melody into a full song with vocals and an arrangement.
Open any .mid file, edit it in a piano roll and export audio.
Hum a melody yourself and get a full song built around it.
Render the melody to an MP3 you can share.
Your next hook starts with a key and a mood
Set the key, scale and length, and let the MIDI Agent write the melody line.