tonal-dictionary
v2.2.2
Published
Tonal key/value utilities
Downloads
8,634
Readme
Dictionary
tonal-dictionary
contains a dictionary of musical scales and chords
This is part of tonal music theory library.
Example
// es6
import * as Dictionary from "tonal-dictionary"
// es5
const Dictionary = require("tonal-dictionary")
Example
Dictionary.chord("Maj7") // => ["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
import { scale } from "tonal-dictionary"
scale("major") // => ["1P", "2M", ...]
scale.names(); // => ["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
import { chord } from "tonal-dictionary"
chord("Maj7") // => ["1P", "3M", ...]
chord.names(); // => ["Maj3", ...]