How to add a KeySignature ?
Hello,
I don't succeed to add a key signature via the API.
I have this code snippet,
var keysig = newElement(Element.KEYSIG);
//keysig.xxxx= xxxx; //adding a "####"
cursor.add(keysig);
it doesn't break but actually
* I can't find how the specify the amount of # or b,
* Nothing visible is done on the score, except that all the following notes are getting a 'natural' in front of them.
Anyone knowing how to add a key signature via the API ?
Cheers,
Comments
I'm guessing probably not supported; there are some more bugs with Key Signatures and dysfunctional properties of it (.key is gone: https://musescore.org/en/node/304681#comment-1027304 and #100501: KeySig key exposure not working)
In reply to I'm guessing probably not… by jeetee
Thanks. Too bad. I wish I'd materialize C++ better to go and fix this.