Skip to content

xmlToM21.py doesn't take offset into account when positioning spanner start/ends (SpannerAnchor is your friend) #1488

@gregchapman-dev

Description

@gregchapman-dev

music21 version
latest

Problem summary

See test_xmlToM21.py (testImportOttava):

# TODO(bug): first element should be ['C7', 'A6']
# not reading <offset>-4</offset>

The solution would be to see the offset, and put in a SpannerAnchor at the appropriately-offset offset instead of just whatever note is next in the MusicXML document.

Steps to reproduce
See testImportOttava.

I will be happy to work on this once I'm done with my Ottava (and other spanner) filling work.

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