Dictionary
tonal-dictionary
contains a dictionary of musical scales and chords
This is part of tonal music theory library.
Example
// es6// es5const Dictionary =
Example
Dictionary // => ["1P", "3M", "5P", "7M"]
- Dictionary
.scale(name)
⇒Array
.chord(type)
⇒Array
Dictionary.scale(name)
⇒ Array
A dictionary of scales: a function that given a scale name (without tonic) returns an array of intervals
Kind: static method of Dictionary
Returns: Array
- intervals
Param | Type |
---|---|
name | string |
Example
// => ["1P", "2M", ...]scale; // => ["major", ...]
Dictionary.chord(type)
⇒ Array
A dictionary of chords: a function that given a chord type returns an array of intervals
Kind: static method of Dictionary
Returns: Array
- intervals
Param | Type |
---|---|
type | string |
Example
// => ["1P", "3M", ...]chord; // => ["Maj3", ...]