Styling properties of StaffText is lost after Swiching "Concert Pitch"

• Jun 23, 2019 - 14:39
Reported version
3.1
Type
Plugins
Frequency
Many
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

I wrote a custom plugin to print out the note names blow the notes. It's very similar to the example "notenames" plugin. My Plugin is also doing some stlyings (custom font, coloring) and postionings. (I attached my whole plugin)

When I run my plugin an click "Concert Pitch" buttion the styling information get lost and overriden with default values. (color turns back to black, placement turns form BELOW to TOP, etc...)

Example staff text properties, that are lost:

var element = newElement(Element.STAFF_TEXT)
element.color = "#777";
element.fontFace = "Segoe Script";
element.autoplace = false;
element.placement = Placement.BELOW;
element.fontSize = myFontSize;
element.offsetY = myOffsetY;
element.fixed = true;

Attachment Size
bagPipeNotes(v3).js.txt 6.86 KB

Comments