tonal-dictionary

2.2.2 • Public • Published

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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i tonal-dictionary

    Weekly Downloads

    319

    Version

    2.2.2

    License

    MIT

    Unpacked Size

    41.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • danigb