reverse notes order in n-plets - plugin having no effect
I am creating a tool for Musescore (currently I am using version 2.3.2).
The plugin has to reverse the order of notes in triplets or other n-plets of a selection.
You can see it as an attachment (qml file).
It's for my only use, so there are no type checks. I do not mind because it processes a selection that I know to make without errors.
Some parameters are hard-coded in this preliminar version as you can see.
In fact it does nothing if I run it on a selection. No errors but the notes are left unchanged.
What is wrong with the code?
This is my first MS plugin so any suggestion is welcome.
Attachment | Size |
---|---|
example.qml | 1.1 KB |
Comments
You'll probably want to store the segment/element in
lastNote
and not the cursor itself. The latter then indeed is still the same cursor, which is why you don't enter the while loop.See also https://musescore.org/en/node/291348#comment-929821 ff.
In reply to See also https://musescore… by Jojo-Schmitz
How is it possible to delete a thread, or edit the title/text after expiration time?
(What is the usefulness of expiration time, when no deletion is possible? just to make a thread title misleading?)
In reply to How is it possible to delete… by P5music
It isn't.
The usefulness of expiration time is to not make every existing answer look out of place after the creation of a thread.
In reply to It isn't. The usefulness of… by jeetee
It should be used just in particular cases, of course, and without totally altering the sense of what came after as answers. Moderators and administrator-level users are usually lurking behind the scenes.
In reply to It should be used just in… by P5music
So you want to continue this in https://musescore.org/en/node/291412 I guess
In reply to So you want to continue this… by Jojo-Schmitz
Yes, as the threads I opened deal with single issues now solved, but the linked thread is going to encompass all that will come out from now.
In reply to It should be used just in… by P5music
That would also require us to actively have moderators and/or increase the burden on the few administrators there are.
In reply to That would also require us… by jeetee
Indeed I realized that I should somehow manage my threads, I hope next time I am able to choose a title with a more general scope.