cursor.add(text) crashes for Element.FINGERING

• Sep 21, 2019 - 16:59

The attached plugin file crashes MuseScore 3.

The crash occurs on the call to cursor.add(), because commenting that line out prevents the crash.

I wanted to use fingering-style annotations of notes because it's closest to the look I need.

Hope you can help.

Attachment Size
crash.qml 766 bytes

Comments

> I wanted to use fingering-style annotations of notes because it's closest to the look I need.

If you want to use a fingering only for its visual style and not for its other features then you may want to just assign a text style of the added text element to Tid.FINGERING:

var text = newElement(Element.STAFF_TEXT);
text.subStyle = Tid.FINGERING;
text.text = "1";
cursor.add(text);

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