MIDI chord generator
Choose a key, then build a single chord or a progression from the chords that belong to it. Each chord is shown with its Roman numeral, its name, correctly spelled notes and MIDI note numbers. Listen to it here, then export a Standard MIDI File for your DAW.
Result
How chords are stacked
A triad is three notes built by skipping every other letter of the scale: a root, the third above it and the fifth above that. The letters are fixed by the stacking (C–E–G, D–F–A, E♯–G♯–B), and the sharps or flats come from the key. That is why the same sounding pitch can have two names: in F♯ major the seventh chord of the scale starts on E♯, not F, because its root is the seventh letter after F♯.
The size of each third decides the quality. A major third (4 semitones) under a minor third (3) gives a major triad; minor under major gives a minor triad; two minor thirds give a diminished triad, and two major thirds an augmented one. Stack one more third and you have a seventh chord. Its name combines the triad with the seventh above the root: a major triad plus a minor seventh is a dominant seventh, a minor triad plus a minor seventh is a minor seventh, and a diminished triad plus a minor seventh is half-diminished. A ninth adds yet another third, while an added-ninth chord keeps the triad and adds only the ninth. Suspended chords replace the third with the second or fourth.
Chords that belong to a key
Building a triad on each degree of a major scale always produces the same pattern: major on I, IV and V; minor on ii, iii and vi; diminished on vii°. Roman numerals record that pattern, with capitals for major chords and lower case for minor and diminished ones, so a progression such as I–V–vi–IV can move to any key. In E♭ major, IV is A♭ major (A♭–C–E♭); in G major it is C major (C–E–G).
The natural minor scale uses the same notes as its relative major but starts on that scale's sixth degree, so the pattern is shifted: i, ii°, III, iv, v, VI and VII. Many pieces in minor raise the seventh note to make the v chord major; use the quality menu to change v to major for that sound. Adding sevenths to every degree gives Imaj7, ii7, iii7, IVmaj7, V7, vi7 and viiø7 in major.
Why inversions matter
An inversion puts a note other than the root in the bass: first inversion has the third lowest, second inversion the fifth, and third inversion (only for four-note chords) the seventh. The chord keeps its name, written with a slash for the bass note, such as C/E. Inversions let each voice move as little as possible between chords. Going from C major (C–E–G) to F major in second inversion (C–F–A) keeps C in place and moves the other two notes by one or two semitones, which sounds smoother than jumping every note up to F–A–C. Try the same progression in root position and with inversions, and compare the MIDI numbers.
What the MIDI file contains
The export is a format 1 file at 480 ticks per quarter note. Track 1 holds the track name, tempo, a 4/4 time signature, the key signature and one marker per chord. Track 2 sets the program to Acoustic Grand Piano on channel 1 and holds the notes. Each chord lasts exactly its number of beats, and at every chord change all Note Offs are written before the next Note Ons at the same tick, so repeated notes restart cleanly. Read how a Standard MIDI File is laid out, or see how chords and notes can be modeled in code in music data structures.