musescore / musescore/MuseScore

TrackName in MIDI export is not using the Part Name.

Open
#21,255 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

MIDI P3 regression MS3
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Issue type

Import/export issue

Bug description

When you use custom names for the parts, it is expected that these are being used for the trackname in the MIDI export (like this was done in MS3). Instead this is not used and only the original instrument name of the part is being used in the MIDI export.

In MS3, the trackname defined for the Part was used as the trackname in the MIDI export.
In MS4, this trackname is still used however it does not contain the modified the name of the part in the MS file and therefore the resulting MIDI file does not contain the desired trackname.

Steps to reproduce

Create a new score
Add an instrument
Rename the part to a custom name
Save the score
Export the score as MIDI file
Open the MIDI file (either in another program or MS4)

Now check the name of the track/part.

Screenshots/Screen recordings

No response

MuseScore Version

4.2.1

Regression

Yes, this used to work in MuseScore 3.x and now is broken

Operating system

Windows 11

Additional context

Test.mscz.zip

Test.mid.zip

Just remove the .zip extension to get the original file (the extension is just added to allow upload to github).

The file contains a sample of a renamed part with the name: Testpartij.

Potential linked to: #19466

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the MIDI export with the attached score, renaming a part before exporting, and compare the resulting track name with the part name. Trace the MIDI export path and inspect how the part's track name is selected; done means the custom part name appears in the exported MIDI while existing exports remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.