Iterate and replace uncommon notes
Hey guys,
im trying to find a way to substitute uncommon notes like a#, e#, fb and so on... by bb, f and e.
I was trying to write a plugin for that but i have troubles at iterating through the score. Do you have an easy example of it? I also appreciate other hints that lead to the solution.
Thanks everyone!
Comments
Look at my MU3 plugin:
https://musescore.org/en/project/enharmonics-replace-chosen-accidentals…
In reply to Look at my MU3 plugin: https… by elsewhere
Thank you so much for your fast reply! It works and thanks for offering such an easy configuration!
But i also have a question: It works but it seems like that i have to write (any) note after activate your plugin to replace the accidentals otherwise nothing will happen. What did i wrong? It doesnt matter if i choose a selection or whole score.
Edit: I checked it by myself and added curScore.startCmd(); and curScore.endCmd(); and now it works perfectly fine. Thank you! 🙏
In reply to Thank you so much for your… by DragonForcee
Great! Welcome to the voodoo world of plugins! On a small file start/end cmd were not needed...
In reply to Thank you so much for your… by DragonForcee
There is also interest in the plugin now at
https://musescore.org/en/node/47726
I cannot reproduce the need for start/end cmd. Could you post your modified .qml file here? I'll update the official version then.
In reply to There is also interest in… by elsewhere
I just did very few changes, nothing special.
Im using the newst Version of MuseScore 4.
Thanks for your help!
In reply to I just did very few changes,… by DragonForcee
OK. That's what we figured in the meantime at the other site. So I'll mark the plugin MU4 compatible.