-
Notifications
You must be signed in to change notification settings - Fork 434
Closed
Description
I have an xml source with hidden rests implied from forward tags in Voice 2, and the import parsing leaves me with gaps if the forward tag occurs midmeasure. See the example below: Voice 2 consists of forward/note/forward. The result of parsing Voice 2 yields rest, note instead of rest, note, rest.
music21/music21/musicxml/xmlToM21.py
Line 2317 in 74b3428
| v.makeRests(inPlace=True, hideRests=True) |
Is there a reason fillGaps is not set to True here? Is it so that the "filling" of incomplete final measures is avoided?
I can loop through every measure with voices and call makeRests(fillGaps=True, hideRests=True) on every voice, but I am curious why xmlToM21 is making its current assumptions.
Example measure tag attached
hiddenRestsVoice.txt
Metadata
Metadata
Assignees
Labels
No labels