Skip to content

Toolkit method to generate default expansion #4258

@samuelbradshaw

Description

@samuelbradshaw

Is your feature request related to a problem? Please describe.
#4250 generates an expansion map automatically (based on repeats, endings, codas, etc. in the score) when importing a MusicXML file to Verovio.

Describe the solution you'd like
It would be helpful if there were a way to generate an expansion map for an existing MEI document, using similar logic as #4250, but without the need for a conversion from MusicXML. Most of the scores I'm working with start as MusicXML, but sometimes I'm modifying an MEI document that's already been converted, and it would be nice to generate a new expansion after those modifications.

Maybe it could be a toolkit method, such as AddDefaultExpansion() or GetDefaultExpansion()?

In addition to simply calculating the order of the expansion, #4250 also creates <section> elements that the expansion plist can refer to, and moves measures into those sections. I would hope that a new toolkit method would do the same.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions