4.9.1 • Published 6 months ago

@tonaljs/abc-notation v4.9.1

Weekly downloads
401
License
MIT
Repository
-
Last release
6 months ago

@tonaljs/abc-notation tonal npm version

Convert note names between scientific and abc notation

Usage

ES6:

import { AbcNotation } from "tonal";

nodejs:

const { AbcNotation } = require("tonal");

API

abcToScientificNotation(noteNameInAbc: string) => string

AbcNotation.abcToScientificNotation("c"); // => "C5"

scientificToAbcNotation(noteNameInScientific: string) => string

AbcNotation.scientificToAbcNotation("C#4"); // => "^C"

transpose(note: string, interval: string) => string

Transpose an note in abc notation:

AbcNotation.transpose("=C", "P19"); // => "g'"

distance(from: string, to: string) => string

Find the interval between two notes in abc notation:

AbcNotation.distance("=C", "g"); // => "12P"

References

4.9.1

6 months ago

4.9.0

11 months ago

4.8.3

1 year ago

4.8.2

1 year ago

4.8.1

1 year ago

4.7.2

3 years ago

4.8.0

3 years ago

4.7.1

3 years ago

4.7.3

3 years ago

4.7.0

3 years ago

4.6.10

3 years ago

4.6.5

4 years ago

4.6.2

4 years ago

4.5.1

5 years ago

4.5.0

5 years ago

3.5.5

5 years ago

3.5.4

5 years ago

3.5.3

5 years ago

3.5.2

5 years ago

3.5.1

5 years ago

3.5.0

5 years ago

3.2.4

5 years ago

3.2.3

6 years ago

3.2.2

6 years ago

3.2.1

6 years ago