Skip to content

save_musicxml() does not include working title in exported file #472

@grundton

Description

@grundton

Hi everyone!

I am using partitura to create and export algorithmically generated scores.
I wanted to include a title, but whatever I tried, I a title would not appear in the exported file.

I then tried the following, where "BeetAnGeSample.musicxml" is a file that contains a work-title field:

import partitura as pt

score_beethoven = pt.load_musicxml("BeetAnGeSample.musicxml")

print(score_beethoven.work_title)

pt.save_musicxml(score_beethoven, out="beet.musicxml")

The print(score_beethoven.work_title) command showed 'An die ferne Geliebte (Page 1)', which means that the title is read into partitura, but save_musicxml() created an musicxml file WITHOUT a work-title field.

I went through the docs to find out whether this is intended behaviour but I did not find an answer.

I hope you could tell me, whether this behaviour is intended, if I did something wrong and perhaps provide me with a minimum working example or work-around of how I can include a title in a musicXML export .

Best,

Tim

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