Dictionaries
Chord dictionary
A dictionary of musical chords.
API
ChordType.get
get(name: string) => object
Given a chord type name, return an object with the following properties:
- name: the chord type name
- aliases: a list of alternative names
- quality: Major | Minor | Augmented | Diminished | Unknown
- num: the pcset number
- chroma: the pcset chroma
- length: the number of notes
- intervals: the interval list
Example:
ChordType.names
names() => string[]
List all chord type (long) names in the dictionary
ChordType.symbols
symbols() => string[]
List all chord type (long) names in the dictionary
ChordType.all
all() => object[]
Return a list of all available chord types.
ChordType.add
add(intervals: string[], names: string[], fullName?: string) => ChordType
Add a chord type to dictionary: