Melody Generator

Pick your chords and a style, hear a melody, get the MIDI. Free.

Trap / hip-hop melody in A minor, 4 bars, over Am, F, C, G. Notes: E6 D6 C6 D6 E6 C6 B5 A5 B5 C6 E6 D6 C6 D6 E6 G6 F6 E6 D6 C6 B5.

1234

Mix Elite's free melody generator writes a catchy melody over the chords you pick, in trap, pop, house, R&B or lo-fi. Press Play to hear it on top of the chords, press New melody until one sticks, then download the MIDI for FL Studio or any DAW. Every melody follows the rules songwriters use: a short idea that comes back changed, the chord's own notes on the strong beats, and a last note that lands home.

How to use the melody generator

  1. Pick a style: Trap / hip-hop, Pop, House, R&B or Lo-fi. Each one has its own rhythm, its own sound and its own tempo.
  2. Pick your chords. Choose a key, then a progression from the Chords list. It's the same list our chord progression generator uses. Already have chords? Tap a chord block under the piano roll and pick the chord you play in that bar. The melody moves to fit it.
  3. Press Play. The melody loops over the chords, and each note lights up in the piano roll as it plays. Press New melody for another one. It keeps playing in time, and the new melody comes in on the next beat.
  4. Keep the bars you like. Tap the lock next to a bar number. New melody then changes only the other bars.
  5. Fine-tune it under Tempo, notes & more: the tempo, fewer or more notes, a lower or higher octave, and 4 or 8 bars.
  6. Press Download MIDI for the melody on its own. For the melody with its chords and a bass line, click the arrow next to the button and choose Melody + chords MIDI. The file name has the key, the style and the tempo in it.

How to write a melody over chords

A melody fits when its notes agree with the chords under it. Producers get there with a few simple rules, and the generator follows the same ones. Use them to write your own melody, or to fix one in FL Studio's piano roll.

“Write a simple melody only on top of the notes that you've already written when putting down your chords.”

Max, founder of Mix Elite, in Mix Elite's free 4.5-hour FL Studio course
  1. Start from the chord's notes. Put a note from the chord on beat 1 and on beat 3 of each bar, where the ear listens hardest. The Am chord is A, C and E, so a note on beat 1 over Am should be A, C or E.
  2. Fill the gaps with steps. Between the chord notes, walk up or down the scale one note at a time. A note that isn't in the chord sounds fine when it passes by quickly and moves on by a step.
  3. Keep the clash note short. The note a half step above a chord note rubs against it. Over a C chord that's F, right above the E. Use it only as a quick passing note, never on the beat and never held.
  4. Write one short idea and repeat it. Make a 1-bar idea, called a motif, and bring it back in the next bars, moved to fit each new chord. Then change bar 4, so the loop has an ending.
  5. Ask a question, then answer it. Let bar 2 end on a note that feels open, and let bar 4 end on the home note of the key, or on the chord note closest to it. This call and answer is the shape of most catchy melodies.
  6. Use mostly small steps and one leap. Most notes should be one or two steps from the last one. One bigger jump, like a 5th, adds energy, and the next note steps back the other way. Keep the whole melody inside about one octave, so a singer could sing it.
  7. Give it a shape and some air. Climb to a high point somewhere in the middle, not at the start. Leave a short gap at the end of each 2-bar line, like a singer taking a breath.

Here's how the generator's first melody uses those rules. It's a trap melody in A minor over Am – F – C – G. The notes on beats 1 and 3 are in bold, and every one of them is a note of its chord.

BarChordChord notesMelody
1AmA C EE D C D E
2FF A CC B A B C
3CC E GE D C D E
4GG B DG F E D C B

“Creating something repetitive and then repeating it two or three times in each of those bars and then in the fourth bar changing it.”

Max, founder of Mix Elite

Max also changes the rhythm from bar to bar: “The idea here is to never keep the rhythm all the time the same.” The generator does the same thing. The bars that bring the idea back sometimes join two notes or split one, and the answer bars get a rhythm of their own. For the full method, read our guide on how to write a melody.

Melody rhythms by genre

Each style in the generator has its own rhythm, tempo and sound. Press play on a row to hear an example over Am – F – C – G.

StyleTempoRhythmSound
Trap / hip-hop140 BPM3-3-2 rhythms, quick 16th notes and repeated notes that bounceBell or pluck, with an echo
Pop118 BPMSingable 8th notes, a few pushed off the beat, long notes at the end of a lineBright pluck synth
House124 BPMShort notes on the off-beats, one bar that repeatsOrgan or piano stab
R&B94 BPMQuick runs of 16th notes that fall onto long notesSmooth lead, 9th chords
Lo-fi84 BPMLazy swung 8th notes with lots of spaceMellow keys, 7th chords

Trap melodies sit high above the chords and repeat notes in a bouncy rhythm, so they leave room for the 808. House riffs repeat one bar on the off-beats, between the kicks. Lo-fi melodies leave the most space, and their off-beat notes come in a little late. That lazy feel is called swing, and it's in the MIDI file too.

How to use the melody in FL Studio

Put the MIDI file into FL Studio

  1. Press Download MIDI. The .mid file goes to your Downloads folder.
  2. In FL Studio, add a sound for the melody: click the + at the bottom of the Channel rack and pick FLEX or FL Keys. Both come with every edition of FL Studio.
  3. Select that channel and press F7 to open its Piano roll.
  4. In the Piano roll menu, choose File > Import MIDI file, or press Ctrl+M. Pick the file, then click Accept. The notes land in the Piano roll.
  5. Press Space to play it. To move the whole melody an octave, press Ctrl+A to select every note, then Ctrl+Up or Ctrl+Down.

With the Melody + chords file, pick the track under Which Tracks to Import: Melody, Chords or Bass. Import each one on its own channel, for example the melody on a bell, the chords on a piano and the bass on an 808.

You can also drag the file from FL Studio's Browser onto the channel or into the Piano roll. Hold Shift as you drop it to skip the import window. FL Studio doesn't show your Downloads folder at first, so drag that folder from File Explorer onto the Browser once. New to the piano roll? Start with our FL Studio piano roll guide.

Pick a sound for the melody

The sound changes how a melody feels as much as the notes do. For trap, try a bell, a pluck or a flute in FLEX. For pop, a bright pluck or a piano. For house, an organ or a piano. For R&B and lo-fi, a soft electric piano: FL Keys can play as a Rhodes. Our guide to trap melodies in FL Studio shows how to make a plain melody sound dark and big.

Watch: how to write melodies in FL Studio

In Mix Elite's free 4.5-hour FL Studio course, Max shows four easy ways to write a melody. The melody lesson starts at 46:22. His first way is the one this generator follows: start from the notes of your chords, change the rhythm from bar to bar, and change the fourth bar to answer the first three.

Frequently asked questions

What is a melody generator?

A melody generator writes a melody for you: a line of single notes that sits on top of your chords, like a vocal or a lead. Mix Elite's free melody generator starts from your own chords and follows the rules songwriters use, so the notes fit. You can hear the melody over the chords and download it as MIDI.

How do I make a melody fit my chords?

Put a note from the chord on beat 1 and on beat 3 of every bar, and walk between those notes with notes from the key's scale, one step at a time. Over Am (A, C and E), a note on the strong beat should be A, C or E. The generator does this in every bar, and when you change a chord, the melody moves to fit the new one.

What notes sound good over a chord?

The chord's own notes always fit: the 1st, the 3rd and the 5th, plus the 7th and the 9th on richer chords. The other notes of the key sound good when they pass by quickly between chord notes. The note a half step above a chord note, like F over a C chord, clashes when it's held, so keep it short and off the beat.

Should I write the chords or the melody first?

For beats, chords first is the easiest way, because the chords tell you which notes will fit. As Max, the founder of Mix Elite, says: “Chords also define what kind of melody we can play.” If you hum ideas, you can start with the melody and find chords for it after. Both ways work.

How long should a melody be?

Most loops and hooks are 4 or 8 bars long. Four bars give you a short idea and its answer. Eight bars play it twice with a different ending the second time, which suits a chorus or a hook. Switch between 4 and 8 bars under Tempo, notes & more.

How do I make a trap melody?

Use a minor key, a dark progression like Am – F – C – G or Am – F – Dm – E, and a tempo around 140 BPM. Trap melodies sit high, repeat notes in bouncy 3-3-2 rhythms and use quick 16th notes, often on a bell or a pluck with an echo. Pick Trap / hip-hop in the generator to hear one, then put the MIDI on a bell or pluck sound in FL Studio.

Does FL Studio have a melody generator?

FL Studio's Piano roll has the Riff machine (Tools > Riff machine, or Alt+E). It builds a riff in steps: notes, chords, an arpeggio and a groove. Mix Elite's melody generator works the other way round: you start from your chords, and it writes a melody on top that fits them, in your style's rhythm.

Can I use these melodies in my songs?

Yes. Every melody is written fresh from your chords and simple music rules when you press the button, and you can use it in songs you release, with no credit needed. Short melodies can still sound like one you've heard before, so change a few notes and make it yours. This isn't legal advice.

Is the melody generator free?

Yes, it's free, with no sign-up and no limit on how many melodies you make or download. It runs in your browser, so a new melody appears instantly.

Keep going

Last updated November 3, 2026. Made by Mix Elite, the team behind the Mix Elite | FL Studio Tips YouTube channel.