[MusicXML import] testMultiInstrumentPart.xml imports as single instrument part

• Jan 10, 2015 - 16:53
Type
Functional
Severity
S4 - Minor
Status
closed
Project
Tags

All measures use the flute instead of two measures piano and two measures flute.


Comments

Instrument changes exported from Finale are not imported by MuseScore and visa versa.

The examples in the following description are from the MakeMusic reference set that
can be downloaded at:
http://www.musicxml.com/wp-content/uploads/2012/11/xmlsamples.zip

1) Instrument changes are exported by MuseScore using a unique <instrument> tag for each different sound.
While this is allowed in MusicXML it is not compatible with Finale and also causes problems
when importing multi instrument parts.
Finale exports instrument changes with a (text) <direction> element containing a <sound> element with the new midi settings.

2) Import of parts with multiple instruments does not work.
The <instrument> in the <note> elements give rise to cluttered markings in the score
because MuseScore thinks it has to create a new instrument at every <instrument> tag.

The two examples below demonstrate this effect and are from the MakeMusic reference set:
http://downloads2.makemusic.com/musicxml/Binchois.xml
http://downloads2.makemusic.com/musicxml/Telemann.xml

3) Pizzicato and muted trumpet are neither exported nor imported in MusicXml.
For instance, in the following example the pizzicate is not recognized.
http://downloads2.makemusic.com/musicxml/MozartTrio.xml
Both Pizzicato and muted trumpet should be exported as a normal instrument change.

This is how Finale makes a pizzicato:

      <direction placement="above">
        <direction-type>
          <words default-x="22" default-y="15">pizz.</words>
        </direction-type>
        <sound>
          <midi-instrument id="P3-I4">
            <midi-program>46</midi-program>
          </midi-instrument>
        </sound>
      </direction>
Status (old) active fixed

Closing the issue, as the original testMultiInstrumentPart problem has been solved in the current trunk.

@willem179, please submit separate issues for different problems instead of adding remarks to a similar issue. Wrt your remarks:

1) MuseScore instrument changes are exported to MusicXML according to the specification IMHO. Relevant quote straight from the spec: "if multiple score-instruments are specified on a score-part, there should be an instrument element for each note in the part". The Binchois and Telemann examples also have instrument elements in each note. A sound element does not describe an instrument change but changed playback parameters for the same instrument.

2) Yes, you are right. However, MuseScore changes an instrument by inserting an instrument change, if the importer were to leave out the text, there would be no visual indication where the instrument changes are. Feel free to suggest a better solution.

3) For this one I kind of agree. Changing trumpet to muted trumpet (MIDI program 57 to 60) I would consider changing playback for the same instrument instead of an instrument change. You could submit this as a feature request.