openlilylib / lilypond-export

LilyPond export API to write Humdrum, MusicXML and more
GNU General Public License v3.0
22 stars 8 forks source link

Add number attribute to lyric element #26

Closed kenakofer closed 3 years ago

kenakofer commented 3 years ago

Hello! I'm relatively new to Lilypond and Scheme, but I would love to see the MusicXML export development grow, specifically for the sake of dynamic web apps. This Pull Request is just me dipping my toes into development, and maybe I'll make more meaningful contributions in the future.

I love feedback, please be picky!

I'm not sure what was under development in the lyric-stanza branch, apologies if this is duplicating work or something.

Problem:

Musescore 3 and https://wim.vree.org/js/abcweb.html both would only render one syllable/line of lyrics even when two or more are specified in MusicXML import.

Solution:

Here we add the number parameter to every lyric (counting up from "1"). This causes both lyric lines in export-example.xml to be read correctly by both programs.