Harmony
Modes
Greek modes dictionary
API
Mode.get
get(name: string) => object
Given a mode name, returns a Mode object with the following fields:
- name: the mode name
- aliases: alternative mode names
- modeNum: the mode number (0...7)
- mode: the mode number
- alt: the alterations
- triad: the triad chord type
- seventh: the seventh chord type
Example:
Mode.names
names() => string[]
Get a list of all mode names.
Mode.all
all() => object[]
Return a list of known modes
Mode.notes
notes(modeName: string, tonic: string) => string[]
Find notes of a mode with tonic:
Mode.triads
triads(modeName: string, tonic: string) => string[]
Return the triads of a mode with tonic:
Mode.seventhChords
seventhChords(modeName: string, tonic: string) => string[]
Return the seventh chords of a mode with tonic:
Mode.relativeTonic
relativeTonic(destination: string, source: string, tonic: string)
Find a relative tonic. For example, the "minor" relative tonic of "C major" is "A":
How to...
Get notes from a mode?
For example, "A major" mode: