File SMTheory.mys
Music theory utilities, chords, intervals...
- Sylvain Machefert
Classes
Class | Summary |
---|---|
Chord | Chord building, accept more notations than builtin HA chords. |
Interval | Interval between two notes, or to build a second note from the first. |
Sections
Section | Summary |
---|---|
Chords | Chord class and other chords utility functions, like extracting chords from the chord line of a staff. |
Intervals | Interval constants |
Strings | String utility functions |
Unicode | Unicode representation of some musical symbols |
Summary
Constant | Type | Summary |
---|---|---|
IL_FIFTH | int | Fifth interval label, C to G, C♯ to G♭... |
IL_FOURTH | int | Fourth interval label, C to F, C to F♯... |
IL_OCTAVE | int | Octave interval label, C to C'... |
IL_SECOND | int | Second interval label, C to D, C to D♭, C♭ to D♯... |
IL_SEVENTH | int | Seventh interval label, C to B, C♯ to B♭... |
IL_SIXTH | int | Sixth interval label, C to A, C to A♭... |
IL_THIRD | int | Third interval label, C to E♭, C♯ to E♯... |
IL_UNISON | int | Unison interval label, C to C, C to C♯... |
IQ_AUGMENTED | int | Augmented interval quality. |
IQ_DIMINISHED | int | Diminished interval quality. |
IQ_DOUBLE_AUGMENTED | int | Double augmented interval quality. |
IQ_DOUBLE_DIMINISHED | int | Double diminished interval quality. |
IQ_MAJOR | int | Major interval quality, apply to second, third, sixth and seventh. |
IQ_MINOR | int | Minor interval quality, apply to second, third, sixth and seventh. |
IQ_PERFECT | int | Perfect interval quality, note that only unison, fourth, fifth and octave can be perfect. |
IQ_QUADRUPLE_AUGMENTED | int | Quadruple augmented interval quality, quite improbable but mathematically possible. |
IQ_QUADRUPLE_DIMINISHED | int | Quadruple diminished interval quality, quite improbable but mathematically possible. |
IQ_TRIPLE_AUGMENTED | int | Triple augmented interval quality, quite improbable but mathematically possible. |
IQ_TRIPLE_DIMINISHED | int | Triple diminished interval quality, quite improbable but mathematically possible. |
UNICODE_DELTA | string | Unicode delta: U+0394 = Δ |
UNICODE_DOUBLE_FLAT | string | Unicode double flat: U+1D12B = 𝄫 |
UNICODE_DOUBLE_SHARP | string | Unicode double sharp: U+1D12A = 𝄪 |
UNICODE_FLAT | string | Unicode flat: U+266D = ♭ |
UNICODE_NATURAL | string | Unicode natural: U+266E = ♮ |
UNICODE_SHARP | string | Unicode sharp: U+266F = ♯ |
UNICODE_SLASHED_O | string | Unicode slashed-O: U+00F8 = ø |
Constants
string UNICODE_DOUBLE_FLAT
Unicode double flat: U+1D12B = 𝄫
string UNICODE_DOUBLE_SHARP
Unicode double sharp: U+1D12A = 𝄪
int IL_UNISON
Unison interval label, C to C, C to C♯...
int IL_SECOND
Second interval label, C to D, C to D♭, C♭ to D♯...
int IL_THIRD
Third interval label, C to E♭, C♯ to E♯...
int IL_FOURTH
Fourth interval label, C to F, C to F♯...
int IL_FIFTH
Fifth interval label, C to G, C♯ to G♭...
int IL_SIXTH
Sixth interval label, C to A, C to A♭...
int IL_SEVENTH
Seventh interval label, C to B, C♯ to B♭...
int IL_OCTAVE
Octave interval label, C to C'...
int IQ_PERFECT
Perfect interval quality, note that only unison, fourth, fifth and octave can be perfect.
C to C, C to F, C to G.
int IQ_MAJOR
Major interval quality, apply to second, third, sixth and seventh.
C to D, C to E, C to A, C to B
int IQ_MINOR
Minor interval quality, apply to second, third, sixth and seventh.
C to D♭, C♯ to E, C to A♭, C to B♭...
int IQ_AUGMENTED
Augmented interval quality.
C to D♯, C♭ to E, E♭ to B, C to F♯...
int IQ_TRIPLE_AUGMENTED
Triple augmented interval quality, quite improbable but mathematically possible.
E♭ to B𝄪, E𝄫 to B♯...
int IQ_QUADRUPLE_AUGMENTED
Quadruple augmented interval quality, quite improbable but mathematically possible.
E𝄫 to B𝄪...
int IQ_DOUBLE_DIMINISHED
Double diminished interval quality.
C♯ to G♭, C𝄪 to G, C to G𝄫...
int IQ_TRIPLE_DIMINISHED
Triple diminished interval quality, quite improbable but mathematically possible.
C♯ to G𝄫...
int IQ_QUADRUPLE_DIMINISHED
Quadruple diminished interval quality, quite improbable but mathematically possible.
Cé#x1d12a; to Gb♭...