music-macro-language
Music macro language parser
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install music-macro-language --save
Usage
js
var fs = var mml = var ast = mml
=> tree
command: 'note' tone: 'C' accidentals: length: 0 dots: command: 'note' tone: 'D' accidentals: length: 0 dots: command: 'note' tone: 'E' accidentals: length: 0 dots: command: 'note' tone: 'F' accidentals: length: 0 dots: command: 'note' tone: 'E' accidentals: length: 0 dots: command: 'note' tone: 'D' accidentals: length: 0 dots: command: 'note' tone: 'C' accidentals: length: 0 dots: command: 'rest' length: 0 dots: command: 'note' tone: 'E' accidentals: length: 0 dots: command: 'note' tone: 'F' accidentals: length: 0 dots: command: 'note' tone: 'G' accidentals: length: 0 dots: command: 'note' tone: 'A' accidentals: length: 0 dots: command: 'note' tone: 'G' accidentals: length: 0 dots: command: 'note' tone: 'F' accidentals: length: 0 dots: command: 'note' tone: 'E' accidentals: length: 0 dots: command: 'rest' length: 0 dots: command: 'note' tone: 'C' accidentals: length: 0 dots: command: 'rest' length: 0 dots: command: 'note' tone: 'C' accidentals: length: 0 dots: command: 'rest' length: 0 dots: command: 'note' tone: 'C' accidentals: length: 0 dots: command: 'rest' length: 0 dots: command: 'note' tone: 'C' accidentals: length: 0 dots: command: 'rest' length: 0 dots: command: 'note' tone: 'C' accidentals: length: 16 dots: command: 'note' tone: 'C' accidentals: length: 16 dots: command: 'note' tone: 'D' accidentals: length: 16 dots: command: 'note' tone: 'D' accidentals: length: 16 dots: command: 'note' tone: 'E' accidentals: length: 16 dots: command: 'note' tone: 'E' accidentals: length: 16 dots: command: 'note' tone: 'F' accidentals: length: 16 dots: command: 'note' tone: 'F' accidentals: length: 16 dots: command: 'note' tone: 'E' accidentals: length: 0 dots: command: 'note' tone: 'D' accidentals: length: 0 dots: command: 'note' tone: 'C' accidentals: length: 0 dots: command: 'rest' length: 0 dots:
Dependencies
None
Dev Dependencies
- pegjs: Parser generator for JavaScript
- standard-version: replacement for
npm version
with automatic CHANGELOG generation
License
MIT
Generated by package-json-to-readme