From f2d286643b2eb572468a9e249102ff7a883ad5c8 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 27 Jan 2008 21:34:07 +0000 Subject: [PATCH] Fix reading of skipped stanzas --- Filters/VLMusicXMLType.reader | 3 +++ 1 file changed, 3 insertions(+) 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