relanote

Intervals reference

Notation

Every interval is <quality><degree><modifiers>.

Quality

SymbolQualityUsed for
RRootshorthand for P1
PPerfectunison, 4th, 5th, 8th, 11th, 12th
MMajor2nd, 3rd, 6th, 7th, 9th, 10th, 13th
mMinorflattened major intervals
AAugmentedraised by a semitone
dDiminishedlowered by a semitone

Degree

The scale degree, 1 to 13+. Anything above 8 wraps an octave.

Modifiers

SymbolMeaning
+raise by one semitone (chromatic)
-lower by one semitone (chromatic)
++, --stack + and - for whole-tone shifts
+Nc, -Ncraise / lower by *N* cents (microtonal)

+/- shift by 100 cents; +Nc/-Nc shift by exactly *N* cents. See Microtones.

Standard intervals (12-EDO)

IntervalSemitonesCentsName
R / P100Perfect unison
m21100Minor second
M22200Major second
m33300Minor third
M34400Major third
P45500Perfect fourth
A4 / d56600Tritone
P57700Perfect fifth
m68800Minor sixth
M69900Major sixth
m7101000Minor seventh
M7111100Major seventh
P8121200Perfect octave

Extended intervals

IntervalSemitonesCentsName
m9131300Minor ninth
M9141400Major ninth
m10151500Minor tenth
M10161600Major tenth
P11171700Perfect eleventh
A11181800Augmented eleventh
P12191900Perfect twelfth
m13202000Minor thirteenth
M13212100Major thirteenth

Arithmetic

rela
M3 + m3     ; = P5 (4 + 3 = 7 semitones)
P5 + P4     ; = P8 (7 + 5 = 12 semitones)
P8 - P5     ; = P4
M7 - M3     ; = P5
invert(M3)  ; = m6 (12 - 4 = 8 semitones)
invert(P5)  ; = P4

Arithmetic preserves cents, so M3 -13.7c + m3 returns a fifth that is 13.7 cents flat of P5.

Microtonal intervals

Append a cents offset to fine-tune. Chains compose by addition:

rela
M3 -13.7c       ; just-intonation major third
P5 +1.96c       ; well-temperament perfect fifth (Werckmeister III)
P1++ +50c       ; quarter-tone shy of a major second

See Microtones for the surrounding language features — tuning declarations, set tuning, |> in_tuning.

Common chord shapes

rela
chord MajorTriad   = [ R, M3, P5 ]            ; 0, 4, 7
chord MinorTriad   = [ R, m3, P5 ]            ; 0, 3, 7
chord Diminished   = [ R, m3, d5 ]            ; 0, 3, 6
chord Augmented    = [ R, M3, A5 ]            ; 0, 4, 8

chord Maj7         = [ R, M3, P5, M7 ]        ; 0, 4, 7, 11
chord Min7         = [ R, m3, P5, m7 ]        ; 0, 3, 7, 10
chord Dom7         = [ R, M3, P5, m7 ]        ; 0, 4, 7, 10
chord Dim7         = [ R, m3, d5, d7 ]        ; 0, 3, 6, 9
chord HalfDim7     = [ R, m3, d5, m7 ]        ; 0, 3, 6, 10
chord MinMaj7      = [ R, m3, P5, M7 ]        ; 0, 3, 7, 11

chord Maj9         = [ R, M3, P5, M7, M9 ]
chord Min9         = [ R, m3, P5, m7, M9 ]
chord Maj11        = [ R, M3, P5, M7, M9, P11 ]
chord Maj13        = [ R, M3, P5, M7, M9, P11, M13 ]

Common scale shapes

rela
scale Major          = { R, M2, M3, P4, P5, M6, M7 }
scale Minor          = { R, M2, m3, P4, P5, m6, m7 }
scale HarmonicMinor  = { R, M2, m3, P4, P5, m6, M7 }
scale MelodicMinor   = { R, M2, m3, P4, P5, M6, M7 }

scale Pentatonic     = { R, M2, M3, P5, M6 }
scale MinorPentatonic = { R, m3, P4, P5, m7 }
scale Blues          = { R, m3, P4, A4, P5, m7 }

scale Dorian         = { R, M2, m3, P4, P5, M6, m7 }
scale Phrygian       = { R, m2, m3, P4, P5, m6, m7 }
scale Lydian         = { R, M2, M3, A4, P5, M6, M7 }
scale Mixolydian     = { R, M2, M3, P4, P5, M6, m7 }
scale Locrian        = { R, m2, m3, P4, P5, m6, m7 }

scale WholeTone      = { R, M2, M3, A4, A5, A6 }
scale Diminished     = { R, M2, m3, P4, A4, m6, M6, M7 }
scale Chromatic      = { R, m2, M2, m3, M3, P4, A4, P5, m6, M6, m7, M7 }

Enharmonic equivalence

Intervals at the same cents distance compare equal regardless of spelling:

rela
A4 == d5   ; true (both six semitones)
M3 == d4   ; true (both four semitones)
m6 == A5   ; true (both eight semitones)

Cents offsets are also considered for equality:

rela
M3 -100c == m3   ; true — 300 cents on both sides