Convert note names between scientific and abc notation
ES6:
import { AbcNotation } from "tonal";
nodejs:
const { AbcNotation } = require("tonal");
AbcNotation.abcToScientificNotation("c"); // => "C5"
AbcNotation.scientificToAbcNotation("C#4"); // => "^C"
Transpose an note in abc notation:
AbcNotation.transpose("=C", "P19"); // => "g'"
Find the interval between two notes in abc notation:
AbcNotation.distance("=C", "g"); // => "12P"