Problem with curScore in plugin.
When using the following code to check for the presence of a score at the start of the MIDISightReader plugin:
if (typeof curScore === 'undefined')
// There's no current score loaded.
showMessage("Error", "Please load a score before using the MIDI sight reader plugin.\n");
... it normally works fine.
However, if you load a score, run the MIDISightReaderPlugin, then close the score without saving, the variable curScore is not 'undefined' anymore. So when running the plugin again, the above code does not get called and MuseScore crashes when curScore.save(...) is subsequently called.
It is possibly related to the MIDISightReaderPlugin using OSC to change the colour of notes in the score.
Nightly build 5659.
Windows Vista 32-bit.