musescore / musescore/MuseScore

Incorrect mapping of Drumset instruments when exporting to XML

Open
#22,702 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

MusicXML P3
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 exporting XML (compressed or uncompressed) from MuseScore 4 (OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.2.1-240230937, revision: github-musescore-musescore-d757433) the drum mapping is completely out of wack (not just transposed). Tested by importing into Reaper.
image
Exporting to midi the mapping is spot on:
image
Github apparently won't let me attach the files xml or midi files so find attached zip...
BRN-Kick+Snare+hiHat.zip

Steps to reproduce
  1. Create one bar loop using Drumset.
  2. Export it using Music Xml (compressed or uncompressed)
  3. Import it into your Daw (Reaper in my case)
  1. Play loop/examine midi to see mapping is all wrong
  2. Do the same but Exporting to midi then importing to DAW and the mapping is correct
Screenshots/Screen recordings

image

MuseScore Version

OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.2.1-240230937, revision: github-musescore-musescore-d757433

Regression

Choose option...

Operating system

OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.2.1-240230937, revision: github-musescore-musescore-d757433

Additional context

No response

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 issue with a one-bar Drumset loop in MuseScore 4.2.1, exporting both compressed and uncompressed MusicXML, then compare the imported mapping in Reaper with the MIDI-export path. Trace the MusicXML export and drum-instrument mapping entry points; done means the MusicXML-imported loop uses the same drum mapping as the correctly mapped MIDI export.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, xml
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.