Simple MusicXML Guitar
解析吉他乐谱 MusicXML 为 JSON 格式。请参考W3C MusicXML。
Install
npm install
npm i simple-musicxml-guitar
yarn install
yarn add simple-musicxml-guitar
Start
import { SMGuitar } from 'simple-musicxml-guitar'
async function loadXMLDoc() {
// Load XML document...
}
const xmlDoc = await loadXMLDoc('/xml/example.xml')
const SMG = new SMGuitar(xmlDoc, { debug: true })
// return a Query object -
// { harmonies: [], measures: [], notes: [], timeline: [], ... }