[MusicXML import] crash if midi-instrument is missing from drum set part
See #55436: Crash when trying to edit a percussion part from a MusicXML file
File Funk.mxl parts P7 and P8 are unpitched (drum set and tambourine). Typically a set of midi-instruments would be found in each part, but in this case the parts contain a virtual-instrument instead (which does not provide any MIDI information).
The MusicXML importer does not expect this and fails because it does not know the MIDI program numbers for the unpitched notes. The result is calling Note::setPitch() with an invalid pitch (-1).
MusicXML midi-instrument definitions are not required, the specification states: "MusicXML software should be able to automatically assign reasonable channels and instruments without these elements in simple cases, such as where part names match General MIDI instrument names".
Comments
Also see http://dev-list.musescore.org/How-to-import-file-with-missing-drum-set-…
See https://github.com/musescore/MuseScore/pull/1956
Fixed in d2d348394c
Automatically closed -- issue fixed for 2 weeks with no activity.