MeasuringPolyphony / mp_editor

https://editor.measuringpolyphony.org
4 stars 2 forks source link

Can we add the ability to add barlines in the data entry screen? #19

Open karend27 opened 4 years ago

karend27 commented 4 years ago

Could we use the '"|" key to indicate single or double barlines that are in the manuscript parts? These often mark sections or endings of parts.

JRegimbal commented 4 years ago

This can be done in the UI easily, but the transformations Verovio makes to the MEI turns each part separated by a barline into entirely different staves with different layers enclosed in different <measure> elements. For example it turns what we would expect to be something like this:

<staff>
    <layer>
        <note dur="semibrevis" oct="3" pname="c"/>
        <barLine/>
        <note dur="semibrevis" oct="3" pname="c"/>
    </layer>
</staff>

info this:

<measure>
    <staff>
        <layer>
            <note dur="semibrevis" oct="3" pname="c"/>
        </layer>
    </staff>
</measure>
<measure>
    <staff>
        <layer>
            <note dur="semibrevis" oct="3" pname="c"/>
        </layer>
    </staff>
</measure>

which then loses information on the barline and makes assembling a new, valid MEI file much harder.