ECHOES-from-the-Past / mei-analyser

Search and analyse Early Music chants
https://echoes-from-the-past.github.io/mei-analyser/
MIT License
2 stars 1 forks source link

Contour & height-based gaps/mismatches highlighting #4

Open notkaramel opened 8 months ago

notkaramel commented 8 months ago

The current implementation of the analysis tool using Needleman-Wunsch algorithm is highlighting the contour between two chants. These mismatches and gaps are made of two notes, and in order to highlight them, we must highlight both notes that create it. This is a bit unintuitive and might be confusing to visually analyse.

To-do (for cross-comparison):

martha-thomae commented 8 months ago

I am including here a few afterthoughts I had:

notkaramel commented 8 months ago

Thank you @martha-thomae, that's very insightful!

I've been debugging the current Needleman-Wunsch algorithm for the past couple of days and see if it can construct and analyse chants via its height/position first.

"[...] if we keep working with sequences of melodic intervals, we need to consider the effect of the edit operation (substitution, addition, deletion of note) in the following interval."

But isn't it the goal of the algorithm is to highlight these edits while keeping the the remainder of the chant to stay the same?

"[...] If we are going to switch now to a "note-height" approach, we will need to consider an extra edit operation (in addition to the usual substitution, addition, and deletion): transposition, which in this context might mean adding or subtracting a fixed interval to a sub-sequence of notes."

I agree and am testing this approach. Will update soon!

Sidenote: I made some indexing mistake for the matrix, making the row to be the column and vice versa. This lead to the analysis to be swapped. It's only recently that I fixed this issue.

notkaramel commented 8 months ago
martha-thomae commented 7 months ago

To-do (for cross-comparison):

I removed the following item from the to-do list:

  • [ ] Implement and test a different algorithm (e.g., Smith-Waterman) for cross-comparison analysis
notkaramel commented 7 months ago

Adding extra requirements and ideas/concerns (discussed with @martha-thomae) about highlight mismatches and gaps for cross comparison:

notkaramel commented 7 months ago

Delaying implementation of this feature (again) to focus on search functionalities

martha-thomae commented 2 months ago

location + show differences on both sides