frmatthew / exsurge

A JavaScript library for rendering Gregorian Chant in square note notation
MIT License
54 stars 13 forks source link

Better identify last syllable #63

Closed bbloomf closed 8 years ago

bbloomf commented 8 years ago

When no space is given immediately after a clef, e.g., "(c4)IN(ed~) nó(g)mi(hj)ne(j)" it was not finding the last syllable of the first word, because the number of syllables was not equal to the length of the matches array, since the first match (the clef) had no lyrics.

I'm not sure that this is completely standard GABC, since all the examples do give a space after the clef, but it doesn't cause a problem for Gregorio to do it this way, and there are at least 30 scores in GregoBase that begin like this with no space between the clef and first syllable.