This website uses cookies to measure engagement and to improve the user experience.
Logo

D Locrian Melody Generator — Free MIDI

Roll D Locrian melodies from D, Eb, F, G, Ab, Bb, C and download the MIDI. Set the contour and density, keep the ones you like. Free, no sign-up.

Melody: 13 notes over 4 bars, arch contour, medium density.
Notes: Ab4 – D5 – Eb5 – G5 – Ab5 – Eb5 – D5 – Eb5 – C5 – Ab4 – G4 – Ab4 – D4

With no stable fifth above the tonic, melodies here tend to avoid the tonic as a resting point altogether and resolve somewhere else, which is why Locrian is used in passing rather than for whole tunes. The one mode with a diminished tonic chord: both the second and the fifth are flattened, so the home chord cannot settle. It is a scale that refuses to resolve. In D Locrian that plays out over D, Eb, F, G, Ab, Bb, C — 3 flats (Bb, Eb, Ab). Set a contour and a density, roll until a line catches your ear, and download exactly what you heard as MIDI.

The notes of the D Locrian scale

Degree1b2b34b5b6b7
NoteDEbFGAbBbC

Key signature: 3 flats (Bb, Eb, Ab).

Step pattern

  • H
  • W
  • W
  • H
  • W
  • W
  • W

W is a whole step (two semitones), H a half step (one), W+H a three-semitone jump. The pattern adds up to the octave.

D Locrian on the keyboard

CDFGEbAbBb

The tonic is the darkest key; every other highlighted key belongs to the scale.

Chords in the key of D Locrian

Stack a third and a fifth from the scale on every degree and you get the chords that belong to this key. Tick diatonic chords before downloading to put all 7 of them in the MIDI file after the scale itself.

NumeralChordNotesQuality
i°D°D – F – Abdiminished
bIIEbEb – G – Bbmajor
biiiFmF – Ab – Cminor
ivGmG – Bb – Dminor
bVAbAb – C – Ebmajor
bVIBbBb – D – Fmajor
bviiCmC – Eb – Gminor

Related keys

The other modes of these notes

Start the same seven notes on a different degree and you get a different mode. These six share every note with D Locrian and differ only in which one is home.

Where the Locrian scale is used

metal, dissonant jazz, and brief passing moments in tonal music — rarely a whole piece.

How it works

Pick a key and scale, then roll melody until something catches your ear. The generator writes each line note by note: it favours stepwise motion over leaps (the way most memorable melodies move), follows the contour you choose — rising, falling, arching, or wandering — packs the bars according to the density setting, leaves the occasional breath of rest, and always resolves to the tonic on the final note. Press play preview to hear the exact notes the download writes. This page arrives preset to D Locrian, so every roll stays inside D, Eb, F, G, Ab, Bb, C and lands on D.

What can you do with a melody MIDI file?

  • Drop it onto any instrument track in your DAW as a topline, hook, or counter-melody starting point.
  • Edit the notes on the piano roll — keep the phrase you like, rewrite the rest.
  • Roll a few variations in the same key and splice the best bars together.

A generated melody is a starting point, not a finished song. For complete arrangements — melody, chords, bass and drums that belong together — open the MIDI Maker studio and generate a full track in D Locrian.

Locrian melodies in every key

More melody scales starting on D

Or head back to the melody generator to build any combination yourself.

Keep building: scales, chords and drums

Frequently asked questions

What notes will a D Locrian melody use?

Every generated melody draws only from the D Locrian scale — D, Eb, F, G, Ab, Bb, C, which is 1 b2 b3 4 b5 b6 b7 against the major scale — across roughly an octave and a half starting at D4, and always resolves to the tonic D on its final note.

What makes a melody sound like Locrian rather than any other scale?

With no stable fifth above the tonic, melodies here tend to avoid the tonic as a resting point altogether and resolve somewhere else, which is why Locrian is used in passing rather than for whole tunes.

Can I control the shape of the melody?

Yes — the contour control biases the melody rising, falling, arching, or wandering, and the density control (sparse, medium, busy) sets how many notes it packs into each bar. Every press of "Roll melody" generates a fresh line with those settings.

Is the generated D Locrian melody royalty-free?

Yes — each melody is generated on your device by weighted chance, not by a model trained on anyone else’s music, so it is yours to keep and royalty-free for personal and commercial projects.

Want full tracks, not just melodies?

The MIDI Maker studio rolls complete, editable arrangements — melody, chords, bass and drums — you can export to any DAW. Free, in your browser.

Open the Studio — Free