Jianpu plugin

• Mar 2, 2019 - 21:54

In Musescore 2, I made frequent use of a numbered musical notation ("jianpu") plugin. It no longer is available to me with the release of Musescore 3. How might I restore this function?


In reply to by tcbnhrs

As far as I understand the issues listed in the plugin's page, they can be resolved in MuseScore 3. Automatic placement for any given element can be disabled from a plugin by setting its autoplace property:
el.autoplace = false;
so autoplacement can be disabled for the added notation elements and, if necessary, for all the other elements programmatically.

tieBack property will be added back in MuseScore 3.3 so the issue with ties should be able to be resolved since that version.

In reply to by tcbnhrs

Given a part of Shakuhachi Notation plugin as an example, you can disable autoplacement for the added text element just before (or after) you add it:

var text = newElement(Element.STAFF_TEXT);
// some code goes here
text.autoplace = false;

Disabling autoplacement for other elements shouldn't actually be needed if your only goal is to make Shakunachi notation elements be placed at fixed positions, but if you still need it you can disable it for them too. The actual code would differ depending on which exactly elements you need to handle, but 3.3 version will, again, simplify that allowing to disable the autoplacement for the whole selection with a simple loop over the selected elements:

var elements = curScore.selection.elements;
for (var i = 0; i < elements.length; ++i) {
    elements[i].autoplace = false;

But, as I said above, it should be sufficient to disable autoplacement only for the added elements so I would recommend to try doing only that part first.

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