Set key signature

• May 23, 2021 - 17:44

Hi everyone. I am writing a plugin that transposes a small phrase to the 12 tonality (useful for jazz or blues licks). It is almost finished (see the attachment) but I have a problem: I don't know how to set the key signature. The phrases are transposed (and even the chords) but the key signature remains the same. How can I do it?

Attachment Size
toAllKeys.qml 2.86 KB

Comments

In reply to by sammik

Thank you for the suggestion but it is exactly what I have done up to now. Let me explain what the desidered result is: starting with a phrase in C, the result should be 12 phrases on different rows each with its own tonality. The plugin already does this but the result is 12 phrases that are transposed using accidentals (so the main key signature remains C). To complete the composition of the score I need to manually drag the appropriate key signature to the first bar of each row. Is there a strategy to do this within the plugin?

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