is it possible to find out, which cleff is at the begining of staff?
Hello everyone, is it possible to find out, which cleff is at the begining of staff, please?
Thank you!
Hello everyone, is it possible to find out, which cleff is at the begining of staff, please?
Thank you!
Do you still have an unanswered question? Please log in first to post your question.
Comments
You can fetch the Element (type=21=CLEF) at the start of the staff, but I can't see how to determine whether it's a treble or bass (or other) clef...
In reply to You can fetch the Element … by Dylan Nicholson1
Thanks. Yes, this is that problem I tried go around.
But I found possible workround.
Create temporary C4 note and read its posY property.
In reply to Thanks. Yes, this is that… by sammik
Yeah I thought of something like that but pretty kludgy. Anyway, I'm starting to familiarise myself a bit better with the internals of the code now, so might be able to give you a better answer soon.
In reply to You can fetch the Element … by Dylan Nicholson1
Isn't the clef itself an enumeration?
In reply to Isn't the clef itself an… by Jojo-Schmitz
If I am right, only "Element.CLEF" but not which type.
In reply to If I am right, only "Element… by sammik
Seems that enum is not exposed to the plugin framework