Dictionaries
Scale dictionary
A dictionary of musical scales.
API
ScaleType.get
get(name: string) => ScaleType
Given a scale type name, return a ScaleType object with the following properties:
- name: the scale 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:
ScaleType.names
names() => string[]
Return a list of all scale names
ScaleType.all
all() => object[]
Return a list of all scale types
ScaleType.add
add(intervals: string[], name?: string, aliases?: string[]) => ScaleType
Add a scale type to dictionary:
How to...
How to get all pentatonics names?
How do to add a scale to the dictionary?
References
Some sources explaining various scale systems: