Skip to content

Commit

Permalink
musicxml: fix generator
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Oct 11, 2024
1 parent 47730ac commit feb0275
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions libresvip/plugins/musicxml/models/mxml4.py
Original file line number Diff line number Diff line change
Expand Up @@ -14297,11 +14297,12 @@ class Meta:
},
)
part_name: PartName = field(
default_factory=PartName,
metadata={
"name": "part-name",
"type": "Element",
"required": True,
}
},
)
part_name_display: Optional[NameDisplay] = field(
default=None,
Expand Down Expand Up @@ -14992,11 +14993,12 @@ class Meta:
},
)
part_list: PartList = field(
default_factory=PartList,
metadata={
"name": "part-list",
"type": "Element",
"required": True,
}
},
)
part: list["ScorePartwise.Part"] = field(
default_factory=list,
Expand Down
2 changes: 1 addition & 1 deletion libresvip/plugins/musicxml/musicxml_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def get_measures(
)
)
ongoing_note_with_current_head = note, border_pair[1]
content_group_border_pair_map[border_pair] = current_content_group
content_group_border_pair_map[border_pair] = current_content_group.copy()

return [
MXmlMeasure(
Expand Down

0 comments on commit feb0275

Please sign in to comment.