Inserting or replacing clef

• Jun 16, 2025 - 16:53

Hello,

is it possible to programmatically set a specific clef at a measure at a certain measure index, or replace an existing clef with another?

(It is certainly possible in the GUI, select measure, then choose a clef)

Kind regards,
peter


Comments

BTW, I tried to iterate through the score, measures and segments to find the element of type Element.HEADERCLEF or Element.CLEF, and I can indeed get to the element. However, what would be the property which in C++ is clefType?

Do you still have an unanswered question? Please log in first to post your question.