hajicj / muscima

Tools for working with the MUSCIMA++ dataset of handwritten music notation.
https://muscima.readthedocs.io
MIT License
16 stars 4 forks source link

Whole rest duration #6

Open hajicj opened 6 years ago

hajicj commented 6 years ago

Whole-rest symbols that occupy an entire measure should have duration derived from the time signature valid for that measure.

The algorithm:

Interpreting the time signature is non-trivial for situations where we don't have the normal 3/4 fraction-like structure: e.g., just "3", and also alla breve can be interpreted in more than one way. We stick to the defaults for now: a single number is interpreted as the number of beats per measure, even though this does not work pre-1700, and alla breve is equivalent to 4/4.