diff --git a/Filters/VLMusicXMLType.reader b/Filters/VLMusicXMLType.reader index d053361..a49a54b 100755 --- a/Filters/VLMusicXMLType.reader +++ b/Filters/VLMusicXMLType.reader @@ -232,6 +232,9 @@ class MusicXMLListener when 'lyric' num = (attrs['number'] || "1").to_i-1 @note['lyrics'] ||= [] + (0..num-1).each do |stanza| + @note['lyrics'][stanza] ||= {} + end @note['lyrics'][num] = @lyric = {} when 'chord' @chord = true