Skip to content

Make measures in incomplete parts either in MIDI parsing or MusicXML export #1857

@jacobtylerwalls

Description

@jacobtylerwalls

Motivation
The refStreamOrTimeRange parameter of makeMeasures already allows to fix jagged ends of parts in a score, for instance, from MIDI files that stopped recording events when a part finished:

Say for instance you'd like to make a complete
score from a short ossia section, then you might use another
Part from the Score as a refStreamOrTimeRange to make sure
that the appropriate measures of rests are added at either side.

Feature summary
I'm proposing to call this utility somewhere, either in MIDI import, or Musicxml export, or both.

Proposed implementation
MIDI import now makes measures as of several versions ago, so when exporting to MusicXML, it runs fixupNotationMeasured() on the assumption the measures are fine (i.e., does not call makeMeasures()). But I have some MIDI files with jagged edges that then get truncated in several musicxml readers (e.g. Finale, music21j)

Intent

  • I plan on implementing this myself.

Happy to contribute something here as soon as I have a gut check on where to place this.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions