Also add regtest for this case
<miscellaneous>
<miscellaneous-field name="description">Some tuplets (3:2, 3:2, 3:2, 4:2,
4:1, 7:3, 6:2) with the default tuplet bracket displaying the number
<miscellaneous>
<miscellaneous-field name="description">Some tuplets (3:2, 3:2, 3:2, 4:2,
4:1, 7:3, 6:2) with the default tuplet bracket displaying the number
- of actual notes played.</miscellaneous-field>
+ of actual notes played. The second tuplet does not have a number
+ attribute set.</miscellaneous-field>
</miscellaneous>
</identification>
<part-list>
</miscellaneous>
</identification>
<part-list>
</time-modification>
<stem>up</stem>
<notations>
</time-modification>
<stem>up</stem>
<notations>
- <tuplet number="1" placement="above" type="start"/>
+ <tuplet placement="above" type="start"/>
</notations>
</note>
<note>
</notations>
</note>
<note>
</time-modification>
<stem>up</stem>
<notations>
</time-modification>
<stem>up</stem>
<notations>
- <tuplet number="1" type="stop"/>
</notations>
</note>
<note>
</notations>
</note>
<note>
if music_list[j] == ev_chord:
break
j += 1
if music_list[j] == ev_chord:
break
j += 1
+ nr = 0
+ if hasattr (tuplet_elt, 'number'):
+ nr = getattr (tuplet_elt, 'number')
if tuplet_elt.type == 'start':
tuplet_info = [j, None, fraction]
indices.append (tuplet_info)
if tuplet_elt.type == 'start':
tuplet_info = [j, None, fraction]
indices.append (tuplet_info)