Skip to content

Commit

Permalink
Add jq support to /grooves.json API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
infojunkie committed Aug 16, 2024
1 parent 164589b commit 629fdc7
Show file tree
Hide file tree
Showing 6 changed files with 564 additions and 4,048 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ A suite of tools to convert MusicXML scores to MIDI via [Musical MIDI Accompanim

# Installation
- Install `xmllint` (included in [libxml2](http://www.xmlsoft.org/) on most platforms)
- Install `jq`
- `git submodule update --init --recursive`
- `npm install && npm run build`

Expand All @@ -24,6 +23,7 @@ A suite of tools to convert MusicXML scores to MIDI via [Musical MIDI Accompanim
- `PORT=3000 npm run start` for production
- `curl -sSf -F"musicXml=@test/data/salma-ya-salama.musicxml" -F"globalGroove=Maqsum" http://localhost:3000/convert -o "salma-ya-salama.mid"`
- `curl -sSf -F"groove=Maqsum" -F"chords=I, vi, ii, V7" -F"count=8" http://localhost:3000/groove -o "maqsum.mid"`
- `curl -sSf -F"jq=.[] |= {groove,description,time}" http://localhost:3000/grooves.json`

# Theory of operation
This converter aims to create a valid MMA accompaniment script out of a MusicXML score. The MMA script is then converted to MIDI using the bundled `mma` tool. To accomplish this, the converter expects to find the following information in the sheet:
Expand Down
Loading

0 comments on commit 629fdc7

Please sign in to comment.