zolaemil / meiView

JavaScript demo application displaying variant readings of historical musical pieces
http://zolaemil.github.io/meiView
7 stars 3 forks source link

Whole-measure rests throw off note spacing in other staves #23

Open mjwalter opened 10 years ago

mjwalter commented 10 years ago

In certain measures, notes are severely misplaced, often entering the following measure. This seems to be caused by the presence of an <mRest> element in another voice. A dramatic example of this bug can be found at DC0302. A simple example is in DC0212. Both paginated and scrolling canvases have the issue.

screen shot 2014-07-29 at 09 51 04

screen shot 2014-07-29 at 09 54 50

zolaemil commented 10 years ago

Wrong time signature in the mei can cause this behaviour: 2/2 isn't the correct time signature for this piece, it should be 4/2.

mjwalter commented 10 years ago

Right. I've added a function to MEIMassage that replaces all 4/2 time signatures with 2/2 signatures (retaining the "cut time" symbol). It's untested (my libmei installation is not working) but it is a simple enough function. We will use it on our next export and massage. You may need to incorporate it into the scripts.