]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Fix clefs that appear in only one staff (ignore for the other!)
authorReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 7 Nov 2008 11:54:50 +0000 (12:54 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 7 Nov 2008 12:12:48 +0000 (13:12 +0100)
commite34fa906a662074ff2b650ec5219b6aa387d3c08
tree42824ad15e32afa94e45bde7445ce6ccda7b55a7
parent7a2680ab3d082e5d7571f34bcdfdb3058f2b1fb1
MusicXML: Fix clefs that appear in only one staff (ignore for the other!)

This bug caused a position-off problem, which messed up chord detection
and caused several other problems. If a clef has a number attribute
(indicating its staff number), only copy it to the relevant staff.
For all other staves, if the remaining attributes are empty, simply
ignore them instead of passing an emtpy <attributes> tag, which was
the real cause for the problem.
python/musicxml.py