npm.io
2.2.2 • Published 7 years ago

tonal-dictionary

Licence
MIT
Version
2.2.2
Deps
3
Size
40 kB
Vulns
0
Weekly
0
Stars
4.3K

Dictionary

npm version

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

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", ...]

Keywords