A visual music notation editor, using ABC notation and built on top of the abcjs rendering library.
Add the corresponding package for your framework (only React available for now), as well as the abcjs library, which acts as the rendering engine.
npm install @abc-editor/react@alpha abcjs
# or
pnpm add @abc-editor/react@alpha abcjs
# etc...
"use client"; // if needed - see https://react.dev/reference/react/use-client
import { ABCEditor } from "@abc-editor/react";
function AbcNotationEditor() {
return <ABCEditor minWidth={600} onChange={(abc) => console.log(abc)} />;
}
Keep in mind that rendering and editing sheet music relies heavily on browser APIs, so this should be be a client-side-only component.