Melody generator
Pick a key, a scale and a feel, and get a lead melody you can see and hear right away. Re-roll as often as you like, change the key and it follows, and swap the sound while it loops. Free, in your browser, with no account.
What is a melody generator?
A melody generator writes a lead line for you in the key and scale you pick. Every note stays in that key, so it fits a song in the same key. You can see it, hear it and re-roll it right away.
A4 A4 C5 D5 C5 C5 C5 C5 A4 A4 C5 A4 A4 E5 E5 D5 D5 D5 C5 C5 C5 A4 A4 D5 …
Every note stays inside the key and scale you pick. Sound starts when you press Play.
Go further with MIDI Lab
Want the whole track, not just one part?
This page is the quick version. The MIDI Lab composer is your AI copilot: it builds a full arrangement around your idea, with drums, bass, chords and leads, all as editable MIDI. Send it straight to your synths, or let Infinite keep the ideas coming.
Free account to start. Your settings carry over.
How to use the melody generator
- 1
Pick a key and scale
Minor and Phrygian sound darker, major brighter, and the pentatonic scales leave out the notes most likely to clash, so almost anything sounds right.
- 2
Choose a feel
The feel picks the style of rhythm and phrasing: house, tech house, techno or melodic techno. The tempo moves to suit it, and you can change it.
- 3
Press Play
Browsers keep a page silent until you click, so the sound starts on Play. The melody loops and the note that is playing lights up.
- 4
Re-roll until one sticks
Press New melody as often as you like. Change the key, scale or sound while it plays and you hear the change on the next loop.
How the melodies are made
No model, no guessing: a rhythm and a shape, placed in your key.
Rhythm times contour
Each melody is a rhythm pattern combined with a contour, the up and down shape of the line, written in scale steps rather than fixed notes.
Always in key
Because the contour is written in scale steps, the same melody works in any key and scale you pick, and every note belongs to that scale.
The feels
The patterns come from MIDI Lab's library of electronic lead lines, so the feels are house, tech house, techno and melodic techno.
The picture
The grid above the buttons draws the melody like a piano roll: time from left to right, pitch from bottom to top, louder notes brighter.
Taking it further
Download .mid saves the melody as MIDI for any DAW. Make a track in this key opens the MIDI Lab composer with the key, scale and feel filled in. Both need a free account.
Melody generator FAQ
Is the melody generator free?
Yes. Generating melodies, re-rolling, changing the key and listening are free with no account and no limit. Downloading the MIDI and opening the composer need a free account.
Does it use AI?
No. The melodies come from a library of rhythm and contour patterns placed into your key with music theory. Nothing on this page calls an AI model.
Can I use the melody in my own song?
Yes. Download .mid gives you the melody as a MIDI file to drag into any DAW, play on any instrument and change as much as you like. Downloading needs a free account.
Can I hum or sing a melody and turn it into MIDI?
No. This page writes new melodies from patterns. It does not listen to audio or turn singing into notes.
Why can't I hear anything?
Browsers do not let a page make sound until you click on it, so press Play first. If it is still quiet, check your volume and make sure your device is not muted.
Which styles does it write in?
House, tech house, techno and melodic techno lead lines. They work in other genres too once you change the sound and tempo.
Which scales can I use?
Minor, major, Dorian, Phrygian, harmonic minor, minor pentatonic and major pentatonic. Pick one and every note stays inside it.
Can I put chords and a bassline under my melody?
Yes. Use the chord progression generator and the bassline generator in the same key. Or send it to the composer to write a full track in that key.
Related tools
Pick the next step for your track. Every tool here opens in your browser.
- Text to MIDIStart hereThe full guide. Type an idea and get editable MIDI parts.
- Chord progression generatorFree, no accountChords in any key, with names and numerals.
- Bassline generatorFree, no accountA bassline that follows the chords in your key.
- Online synthFree, no accountPlay Centrifuse, our own synth engine, in your browser.
- Online drum machineFree, no accountBuild a beat on a step grid with real kits.
- AI MIDI generatorLoops and ideas as multitrack MIDI, for any DAW or your hardware.
Want the chords, bass and drums underneath it? Describe the track in the composer.
Open the composer