ELVIS-Project / cbsmr-patternfinder

Content-based symbolic music retrieval service infrastructure.
MIT License
2 stars 0 forks source link

Speedup excerpt display #23

Closed DavidGarfinkle closed 4 years ago

DavidGarfinkle commented 5 years ago

option 1)

save MusicXML output from each measure separately using music21.stream.Measure() problems are concatenating this data back together.

preserve offsets with measureOffsetMap

but what about duplicated and redundant contexts? not good to have a repeated clef in every measure

DavidGarfinkle commented 5 years ago

I implemented AJAX retrieval for excerpts on the page

DavidGarfinkle commented 4 years ago

the biggest problem here was parsing the entire score and sorting notes everytime we wanted to extract an excerpt

instead, i write a note_id=#xyz tag on every note when we first index the score

now we run an XML parser and, at excerpt time, given a collection of note_ids, we replace all of the matching note_id=#xy with red