New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tonal-dictionary

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tonal-dictionary

Tonal key/value utilities

  • 2.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

ParamType
namestring

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

ParamType
typestring

Example

import { chord } from "tonal-dictionary"
chord("Maj7") // => ["1P", "3M", ...]
chord.names(); // => ["Maj3", ...]

Keywords

FAQs

Package last updated on 03 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc