syl->GetChild(0, TEXT) is probably causing the problem.
Something equivalent to element.textContent in Javascript should be implemented to extract the text content from the descendents of <syl> to remove <rend> markup of the text.
For now null values for syl->GetChild(0, TEXT) could be checked to prevent segmentation fault, and then do not add any lyric for the rend-wrapped lyric content.
The following example MEI data causes a segmentation fault when calculating MIDI data:
Here is the function stack at the time of the crash:
If the italics rend is removed, there is no segmentation fault:
GenerateMIDIFunctor::VisitSyl()
:syl->GetChild(0, TEXT)
is probably causing the problem.Something equivalent to
element.textContent
in Javascript should be implemented to extract the text content from the descendents of<syl>
to remove<rend>
markup of the text.For now null values for
syl->GetChild(0, TEXT)
could be checked to prevent segmentation fault, and then do not add any lyric for the rend-wrapped lyric content.