Skip to content

Hidden rests from <forward> tags not filled with rests by xmlToM21 #444

@jacobtylerwalls

Description

@jacobtylerwalls

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.

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions