hajicj / MUSCIMarker

Tool for annotating objects in musical scores.
http://muscimarker.readthedocs.io/en/latest/
Apache License 2.0
7 stars 2 forks source link

Annotating and visualizing precedence #161

Open hajicj opened 6 years ago

hajicj commented 6 years ago

It should be possible to annotate and visualize not only the symbol attachment graph, but also the precedence graph of notes and rests (however it is defined).

This essentially means having edges of different types in the object graph. There are two ways to implement this in the data model:

Keeping all the edges in one graph has the disadvantage that it will be difficult to have two edges with different labels between a pair of objects. We can record label lists, but that breaks the 1:1 relationship between edge in graph and EdgeView.

hajicj commented 6 years ago

Steps towards solution 1:

hajicj commented 6 years ago

Decision: so far, we will stick with solution 1. It requires the least modification and (almost) by definition, attachment edges and precedence edges will never lead between the same pair of symbols: it is actually right now forbidden to have Attachment among noteheads/rests.