The Patchbay_

Tonal

Functional music-theory library for notes, intervals, chords, scales and keys in JavaScript.

LanguageJavaScript
CategoryComposition & notation
LicenseMIT
PlatformsmacOS Windows Linux Web
Installnpm install tonal
First released2015
MaintainedYes
LinksWebsite · Source

Strengths

Limitations

Best for

Computing notes, scales, chords and key relationships inside any JS app.

Minimal example

import { Note, Scale } from "tonal";
Note.midi("C4");            // 60
Scale.get("C major").notes; // ["C","D","E","F","G","A","B"]

Alternatives to Tonal

music21mingusAbjadSCAMP

← Back to all tools