Express based lilypond converter for nodejs.
Converts a .ly file
File format | Media type | Input format | Output format |
---|---|---|---|
ASCII (Lilypond) | Text | x | x |
MIDI | Music | x | x |
Text | x | ||
SVG | Image | x | |
PNG | Image | x |
Server listing on port 3002 and can be changed in index.js
- npm install
- node index.js
- npm install
- pm2 start index.js --name lilynode-api
structure:
- Songtitle
- Partiture name
- lilypond.ly: contains lilypond code
- lilypond.midi: generated midi file from lilypond.ly
- lilypond.png: generated png file from lilypond.ly
Example: /files/Songtitle/Chorus/Chorus.ly
HTTP Method | Route | Body | Description |
---|---|---|---|
GET | /ly-converter | format=png&content={ly code} | Convert ly file to png |
GET | /ly-converter | format=svg&content={ly code} | Convert ly file to svg |
GET | /ly-converter | format=midi&content={ly code} | Convert ly file to midi |
GET | /ly-converter | format=png&content={ly code} | Convert ly file to pdf |
GET | /midi-converter/ly | midi={binary midi file} | Convert midi to ly file |
- 10 Best Practices for Better RESTful API: https://medium.com/@mwaysolutions/10-best-practices-for-better-restful-api-cbe81b06f291
- PM2 Quickstart: http://pm2.keymetrics.io/docs/usage/quick-start/