Center accidental?
Is there a way to precisely center a functioning accidental (i.e. not staff text) above a notehead? With small accidentals, 1.5 for sharp and 1.15 for flat seem close to my eye, but I'd like to be precise.
I'm doing this for marking musica ficta. I'd like to eventually make a plugin that will automate these settings.
Comments
I'd start with center alignment on the accidental. This centers it relative to the left edge of the notehead, regardless of the width of the accidental. Then you can set the offset to be half the notehead width. That varies according to duration and font, so unfortunately, still not quite a one-and-done. But more easily automatable.
In reply to I'd start with center… by Marc Sabatella
How do you set center alignment on the accidental? I don't see a property for that.
You would use the bbox property to calculate the width of the notehead? I'm using this Element Explorer (https://musescore.org/en/node/320499) to learn some item properties.
In reply to How do you set center… by jonarnold
I was envisioning adding as text via the Special Characters palette. Perhaps staff text, perhaps fingering and using a custom text style, so you get 90% of the way there without manual adjustment or plugin.
And yes, I assume bbox would be the way to get note width, unless that includes any dots.
In reply to I was envisioning adding as… by Marc Sabatella
Yeah, as I mentioned in the original post, I'd rather not use staff text. I want to use a functional accidental so that it will transfer to playback and MusicXML. Thanks.
In reply to Yeah, as I mentioned in the… by jonarnold
Gotcha. But still, I'd probably consider adding an invisible one for the playback and MusicXML, and then a separate symbol or text one for the appearance. Relying on manually positionally accidentals in this way seems likely to backfire in the long run.
In reply to Gotcha. But still, I'd… by Marc Sabatella
Yes, I considered that. If I can't achieve what I want via the plugin (looking for help at https://musescore.org/en/node/328933), I'll try that. Thanks!