Calling appendPart(InstrumentName) on the active score causes MuseScore to crash.

• Apr 19, 2010 - 14:13
Type
Plugins
Severity
S2 - Critical
Status
closed
Project

I'm trying to develop a plug-in that will produce music in parallel with the current selection, so I've been trying to append a new part to the score. This causes the above problem which I've successfully replicated in musescore 0.9.6 with the plug-in code below.

var mscorePlugin =
{
majorVersion: 1,
minorVersion: 1,
menu: 'Plugins.mytest',
init: init,
run: run,
onClose: close
};

function init() {};

function run() {
curScore.appendPart("Piano");
};

function close() {};

mscorePlugin;


Comments

Status (old) fixed active

If you undo, MuseScore crashes.
Another bug, the function is called appendPart but a part is added at the beginning.