craigsapp / website-polish-scores

Front-end for digital transcriptions of the Polish Music Heritage in Open Access project
https://polishscores.org
3 stars 1 forks source link

Implement interval search #58

Open craigsapp opened 2 years ago

craigsapp commented 2 years ago

This will be done by having a boolean button on the work pages to select between pitch and intervals. Intervals will be specified as pitches, and then an interval calculated between the pitches (intervals will not be given as numbers to simplify the music search interface).

For browse page music search this should match, but thought on how to do so needs to be done, since it is a different technology. Probably creating a search index that contains pitch, interval and rhythm for all notes in one sequence will need to be done (provided that the search index does not become too large).

craigsapp commented 8 months ago

Implemented for work pages:

Searching for rising minor seconds:

Screenshot 2024-01-25 at 23 37 46

Search for (at least) two rising thirds in a row, with a list of the measures containing matches:

Screenshot 2024-01-25 at 23 41 01

Search for repetitions:

Screenshot 2024-01-25 at 23 42 57