mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Fix reading of skipped stanzas
This commit is contained in:
parent
3d072d53d5
commit
f2d286643b
|
@ -232,6 +232,9 @@ class MusicXMLListener
|
||||||
when 'lyric'
|
when 'lyric'
|
||||||
num = (attrs['number'] || "1").to_i-1
|
num = (attrs['number'] || "1").to_i-1
|
||||||
@note['lyrics'] ||= []
|
@note['lyrics'] ||= []
|
||||||
|
(0..num-1).each do |stanza|
|
||||||
|
@note['lyrics'][stanza] ||= {}
|
||||||
|
end
|
||||||
@note['lyrics'][num] = @lyric = {}
|
@note['lyrics'][num] = @lyric = {}
|
||||||
when 'chord'
|
when 'chord'
|
||||||
@chord = true
|
@chord = true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user