check for brackets (or system) via plugin?
Please, is there a way, to check, if there are brackets at the begining of the system?
Thank You!
Please, is there a way, to check, if there are brackets at the begining of the system?
Thank You!
Do you still have an unanswered question? Please log in first to post your question.
Comments
No
In reply to No by jeetee
Nor a way to get system element?
Or some idea for hacking it? Like left offset off staff lines, or something like that?
In reply to Nor system element? Or some… by sammik
Let's back up a step and start from what you're trying to achieve and why you think you'd need system bracket information.
In reply to Let's back up a step and… by jeetee
In my scordatura plugin there is tool to create scordatura symbol at the begining of staff. (in fact it is staff text showing symbols)
but if there is bracket, scordatura symbol is too close / overlaping it.
In reply to In my scordatura plugin… by sammik
I understand; staff.brackets however is not exposed to the plugin api
Different approach for the "alternative" version:
Set the
leadingSpace
on the clef to make room for your staff text symbols. As that is set on the entire segment, you only need to set it once for the system. Still attach them to the first chordRest and use the .x difference between the chordrest and the clef as an additional offset.In reply to I understand; staff.brackets… by jeetee
jeetee, thank You for
leadingSpace
tip!(It needs to be set to segment itself.)
Bit offtopic, but once You looked into my plugin I will try. One thing is still missing in scordatura writing in MS and probably is too comlicated to hack it - ledger lines for custom key signatures. I think, it is quite trivial task to someone familiar with C++ an MS code, if You can look at it.
As custom key signatures can be really custom, in my opinion, simple - ledger line(s) for each accidental out of staff lines is enough. #314800: add Ledger lines to Custom key signatures
Fixing this MS, hopefully, will have best solution on the market.