4.8.3 • Published 3 months ago
@tonaljs/abc-notation v4.8.3
@tonaljs/abc-notation
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.8.3
3 months ago
4.8.2
3 months ago
4.8.1
4 months ago
4.7.2
1 year ago
4.8.0
1 year ago
4.7.1
1 year ago
4.7.3
1 year ago
4.7.0
1 year ago
4.6.10
1 year ago
4.6.5
3 years ago
4.6.2
3 years ago
4.5.1
3 years ago
4.5.0
3 years ago
3.5.5
4 years ago
3.5.4
4 years ago
3.5.3
4 years ago
3.5.2
4 years ago
3.5.1
4 years ago
3.5.0
4 years ago
3.2.4
4 years ago
3.2.3
5 years ago
3.2.2
5 years ago
3.2.1
5 years ago