Centered Text
Hi
How to put text that is a relationship between two notes?, so it has to be centered horizontally like "M3" (major third) in the example image, automatically
I'd like to know how to center the text attached to a note
Thanks a lot
Comments
You can center text attch to a note by right clicking it, Text Properties, and clicking the center icon under the horizontal aligment section.
Centering text *between* notes is not a standard part of music notation, so there is no automatic way to do it. You could either move it manually, or if you want it to survie a change in layout better, you could put invisible rests in another voice and attach the text to one of those.
In reply to You can center text attch to by Marc Sabatella
Thank you for your answer
How can I access that property of "center text" in qml. For example if i want the "Hola Mundo" to be centered
var text = newElement(Element.STAFF_TEXT);
text.text = "Hola Mundo";
text.pos.x = 0; //Aligned horizontally to the note
text.pos.y = 0; //Aligned in D, upper octave
cursor.add(text);
Regards