musescore/MuseScore — pull request #687 by MarcSabatella (2014-02-05 17:56:46+00:00)
Title: fix #23999: instrument change produces incorrect mixer details

Upon creation / addition of a new INSTRUMENT_CHANGE element, the "instrument" itself was left uninitialized until you actually did a Change Instrument, leading to non-deterministic results if you tried to view the Mixer. I initially thought that was an odd thing to do until it was pointed out that this is how one would likely use instrument change for patch changes on synthesizer or organ parts. So I've added an explicit initialization of the instrument - copied from the current instrument for that staff at that tick.