grochat / verovio

🎵 Music notation engraving library for MEI with MusicXML and Humdrum support and various toolkits (JavaScript, Python)
http://www.verovio.org
Other
0 stars 0 forks source link

display a verse (solmisation) above staff, one way or another #29

Closed grochat closed 1 year ago

grochat commented 2 years ago

(ask Laurent Pugin...)

grochat commented 1 year ago

Rather than forcing <div> or <dynam>, another idea would be to use a verse with attribute n="-1", meaning to display it above rather than below the staff. I don't think there is anything against a negative n in MEI...

tabourot commented 1 year ago

Exerpt of MEI-mensural documentation

in element : @n (optional) Provides a number-like designation that indicates an element’s position in a sequence of similar elements. May not contain space characters. Value conforms to data.WORD.

Definition of data.WORD : A single "word" that contains only letters, digits, punctuation characters, or symbols. It cannot contain whitespace.

Therefore A negative number matches the definition !

grochat commented 1 year ago

@lpugin also suggested to implement <verse> attribute place="above". That would probably be even cleaner. - So either way, there is hope!

tabourot commented 1 year ago

Agreed !

grochat commented 1 year ago

Implemented in commit 8c17339. Attached in an example. MEI_test_verse_above.mei.txt 😉 🎼

tabourot commented 1 year ago

Just a little bug : since the fourth staff, te lyrics appears underlined. Cf. 0108Hugo-CMPVBarsSepTriplum-1.pdf attached file

grochat commented 1 year ago

I have just fixed it by simply disabling syllable extension line for neume or mensural notation (I hope everyone will agree that makes sense...) I have noticed that the position of the lyrics "above" depends system-wise on the (variable) position of the lyrics "below". That could be taken care of later... EDIT: just fixed as well.