simple-musicxml-guitar
TypeScript icon, indicating that this package has built-in type declarations

0.3.7 • Public • Published

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: [], ... }

Readme

Keywords

Package Sidebar

Install

npm i simple-musicxml-guitar

Weekly Downloads

2

Version

0.3.7

License

MIT

Unpacked Size

954 kB

Total Files

97

Last publish

Collaborators

  • gzzhiyi