Finale seems to produce xml files that contain <notation> tags
with possibly multiple <tuplet...> tags, in particular when
a tuplet is only for one note (with tremolo subdivisions)...
This patch only fixes the crash, but does not handle the logic behind
this correctly :-(
else:
return None
- def get_tuplet (self):
- return self.get_maybe_exist_typed_child (Tuplet)
+ def get_tuplets (self):
+ return self.get_typed_children (Tuplet)
class Time_modification(Music_xml_node):
def get_fraction (self):
# +fermata | arpeggiate | non-arpeggiate |
# accidental-mark | other-notation
for notations in notations_children:
- if notations.get_tuplet():
- tuplet_event = notations.get_tuplet()
+ for tuplet_event in notations.get_tuplets():
mod = n.get_maybe_exist_typed_child (musicxml.Time_modification)
frac = (1,1)
if mod: