[MusicXML export] transposition change to "in C" not exported

• Oct 18, 2020 - 08:45
Reported version
3.5
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

Currently the MusicXML exporter never exports transposition in C (chromatic = 0). This is correct for an instrument in C, but not when changing from an instrument with a different transposition to one in C.

Issue is in ExportMusicXml::writeInstrumentDetails(), which does not take the previous instruments transposition into account.

See attached files, where the transpose element is incorrectly missing for the clarinet in C.

Attachment Size
testClarinetABbC.mscx 9.02 KB
testClarinetACD.mscx 9.24 KB