musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.15k stars 2.63k forks source link

MIDI channels sometimes contain more than one instrument types even when there are less instruments than channels #20668

Open Eddy67716 opened 9 months ago

Eddy67716 commented 9 months ago

Issue type

Import/export issue

Bug description

Whenever I try to export to MIDI I sometimes get a problem where multiple tracks use the same instrument type even though they don't have the same instrument type in Musescore. In a MIDI I exported with the list of instruments below, the piano, harpsichord, oboe and a few other samples ended up sounding like strings. I think this has something to do with pizzicato and tremolo channels being overlapped with other channels. I seem to have this issue with most scores with a couple of String instruments like violins, celli, basses, etc.

Also, in a music xml export, with the instruments in the screenshot, the harpsichord and the cello end up on the same MIDI channel.

Steps to reproduce

  1. Open a file that has about 10 instruments including a string quintet, electric guitar, bass or some FX synths,
  2. Export to MIDI
  3. Sometimes a track meant to be played by a specific instrument will be played by another instrument.

Screenshots/Screen recordings

No response

MuseScore Version

Musescore 4 and above

Regression

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

Operating system

Windows 10

Additional context

musicxml_extract.txt Only 12 instruments

MarcSabatella commented 9 months ago

Please ZIP and attach ther specific score you are having trouble with, and say which notes specifically are not playing correctly for you in your MIDI program after exporting. Also say which program you are using to play that MIDI file.

Eddy67716 commented 9 months ago

Seeing the Light theme.zip

MarcSabatella commented 9 months ago

Thanks for the file, but please also say program you are using to play the generated MIDI file, and which notes your MIDI program is having trouble with.

Eddy67716 commented 9 months ago

OpenMPT, Audacity, MidiEditor and Java's Sequencer.

Eddy67716 commented 9 months ago

All the program change events get piled on at the beginning of the MIDI sequence when they should be strategically placed throughout the sequence. This also happens with all the key signatures.