Valid functions (methods?) for changing clef via plugin?

• Mar 9, 2017 - 16:05

This was asked previously by another member in https://musescore.org/en/node/121891, but I hadn't seen any responses.
Trying to write a simple script to change the clef type (to bass clef, aka "F" clef, in this case), but not having success...

var BC= newElement(Element.CLEF);
BC.clefType("F"); // here I also tried BC.setClef("F") and BC.setClefType("F")
cursor.add(BC);

Any help would be appreciated...thanks!

Do you still have an unanswered question? Please log in first to post your question.