Skip to content

Start and end notes under Ottava spanner exported incorrectly due to toWrittenPitch() #1419

@NeroBlackstone

Description

@NeroBlackstone

music21 version

7.3.3

Problem summary

Pitch of some notes incorrect after .musicxml file parsed by music21.

Steps to reproduce

from music21 import *
s=converter.parse('1.musicxml')
s.show()

Expected vs. actual behavior

Original file:
original xml

After parse:
after parse

So C5 is incorrectly parsed as C4.

More information

musicxml file:
1.zip

OS: linux-lts 5.15.64-1

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions