Reading instrument names
I need to scan the staves in a score to read the instrument names into a plug-in. However, I cannot see a way of doing that. Am I missing something?
I need to scan the staves in a score to read the instrument names into a plug-in. However, I cannot see a way of doing that. Am I missing something?
Do you still have an unanswered question? Please log in first to post your question.
Comments
See http://musescore.org/en/plugin-development/part-object
In reply to See by Jojo-Schmitz
How did I miss that?!? I was expecting it to be associated with parts.
Go back to sleep, colin.
In reply to Thank you by cwhysall
Here is all the code:
var mscorePlugin =
{
menu: 'Plugins.Utilities.View Instrument Parts',
init: init,
run: run
};
mscorePlugin;
function init() {};
function run()
{
pluginName = "View Instruments";
// View Parts
ls_Errors = ""
ls_msg = "";
ls_msg += "\t\tANALYSIS OF INSTRUMENT PARTS\n";
ls_msg += "*********************************************************\n";
ls_msg += " |\tInstrument Name\t\t|\t|\tmidi \t |\n";
ls_msg += "--------|----------|----------------------------|-----------|------------|-----------|\n";
ls_msg += "Index |\tshort |\tlong \t\t| Staves\t| Channel\t | Program |\n";
ls_msg += "--------|----------|----------------------------|-----------|------------|-----------|\n";
for(li=0;li