Fix reading of skipped stanzas

This commit is contained in:
Matthias Neeracher 2008-01-27 21:34:07 +00:00
parent 3d072d53d5
commit f2d286643b

View File

@ -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