Putting Circle Frames on Particular Fingerings
Hi all
I'm a newbie trying to learn how to write plugins for musescore. My goal is simple. Search the score for fingerings, and if there is a fingering that is labeled 1, put a circle frame on that fingering. I tried searching documentation on how to access the frame element, but can't seem to find any. Can anybody point me in the right direction?
Figure included is the desired behaviour.
Thank you in advance
Attachment | Size |
---|---|
Screen Shot 2019-02-19 at 4.05.12 PM.png | 17.1 KB |
Comments
It's located in the inspector (F8 to toggle it).
In reply to It's located in the… by mike320
Hi Mike
Thanks for replying. My apologies, I should have mentioned that I'd like to do this programmatically i.e. code a plugin to perform this task.
Thanks!
In reply to Hi Mike Thanks for replying… by Kadri Nizam
You will need to wait for a programmer to wake up and see this post then. They're mostly asleep in Europe right now.
нужно изменить стиль текста. если я правильно Вас понял, Вы хотите все единички в круглую рамку?
(need to change text style. if I understand you correctly, do you want all the ones in a round frame?)
In reply to нужно изменить стиль текста… by bazhenoff
That's exactly what I wanted to do. textStyleType was what I was looking for. спасибо!
In reply to нужно изменить стиль текста… by bazhenoff
Hi Bazhenoff,
Sorry to trouble you again. When I tried your suggestion, nothing happens to the '1'. I tried debugging and found that the
textStyleType
property is undefinedconsole.log(noteElement.textStyleType)
Returned:
Debug: undefined
Do you know if there's documentation on the properties of the elements?
In reply to console.log(noteElement… by Kadri Nizam
Much changed in the plugin framework between MS2 and MS3. Here is a preliminary document for 3.0.
In reply to Much changed in the plugin… by Louis Cloete
Hi Louis,
Thanks for linking me the documentation. This will be very useful.
It says there that TextStyleType has been changed to Tid. When I tried
noteElement.Tid
, I'm still getting undefined. I tried investigating the noteElement object viaObject.keys(noteElement)
, but I don't see a Tid property in there. I realize that Tid is an enum, but what properties do I use it against in noteElement?for 3.x
noteElement.subStyle = 10;
In reply to for 3.x noteElement.subStyle… by bazhenoff
That works! Thank you so much!
I've got a lot to learn...