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.
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
- 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.
- 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.
- 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.
- Keep the bars you like. Tap the lock next to a bar number. New melody then changes only the other bars.
- Fine-tune it under Tempo, notes & more: the tempo, fewer or more notes, a lower or higher octave, and 4 or 8 bars.
- 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
| Bar | Chord | Chord notes | Melody |
|---|---|---|---|
| 1 | Am | A C E | E D C D E |
| 2 | F | F A C | C B A B C |
| 3 | C | C E G | E D C D E |
| 4 | G | G B D | G 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.
| Style | Tempo | Rhythm | Sound |
|---|---|---|---|
| Trap / hip-hop | 140 BPM | 3-3-2 rhythms, quick 16th notes and repeated notes that bounce | Bell or pluck, with an echo |
| Pop | 118 BPM | Singable 8th notes, a few pushed off the beat, long notes at the end of a line | Bright pluck synth |
| House | 124 BPM | Short notes on the off-beats, one bar that repeats | Organ or piano stab |
| R&B | 94 BPM | Quick runs of 16th notes that fall onto long notes | Smooth lead, 9th chords |
| Lo-fi | 84 BPM | Lazy swung 8th notes with lots of space | Mellow 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
- Press Download MIDI. The .mid file goes to your Downloads folder.
- 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.
- Select that channel and press F7 to open its Piano roll.
- 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.
- 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?
How do I make a melody fit my chords?
What notes sound good over a chord?
Should I write the chords or the melody first?
How long should a melody be?
How do I make a trap melody?
Does FL Studio have a melody generator?
Can I use these melodies in my songs?
Is the melody generator free?
Keep going
Last updated November 3, 2026. Made by Mix Elite, the team behind the Mix Elite | FL Studio Tips YouTube channel.