Plugin for coloring altered notes
I made a variation of the ColorNotes plugin that maybe useful to someone. Instead of coloring by pitch, it colors only the notes that are sharped or flatted by the key signature or by explicit accidentals. See the screen shot below for an example. Naturals are black, flats are blue, sharps are red. (The plugin also handles 𝄫 and 𝄪)
(Note: the plugin doesn't do the solfege and pitch names shown in the image. Those were added by hand as lyrics)
What's the best way to contribute it? I'm happy to put it in public Github repo, for example.
Cheers,
Mike
Attachment | Size |
---|---|
Screen Shot 2022-12-21 at 3.42.41 PM.png | 105.73 KB |
Comments
Use https://musescore.org/en/node/add/project_project
And a public Git repo, pointed to from the plugins page
In reply to Use https://musescore.org/en… by Jojo-Schmitz
Ok. Thanks.
In reply to Use https://musescore.org/en… by Jojo-Schmitz
Done. https://musescore.org/en/project/alter-color
Thanks for the instructions!
In reply to Done. https://musescore.org… by michael_ellis
Drop the 'Qt.' from the 'Qt.quit();' and is should run in MuseScore 4 too
In reply to Drop the 'Qt.' for n the 'Qt… by Jojo-Schmitz
Doing that throws an error in 3.6 (although the plugin produces the right result)
156:-1: ReferenceError: quit is not defined
Warning: file:///Users/mellis/altercolor/altercolor.qml:156: ReferenceError: quit is not defined
In reply to Doing that throws an error… by michael_ellis
Doesn't matter though
In reply to Doing that throws an error… by michael_ellis
And the Qt.quit(); is wrong in MU3 too, just doesn't lead to a crash there, like in MU4
In reply to And the Qt.quit(); is wrong… by Jojo-Schmitz
Thanks, JoJo. Is there a syntax for terminating onRun that satisfies both MU3 and MU4? Or a runtime query to determine which one the plugin is running under?
I've not yet had a chance to check out MU4. Decided to upgrade my MacOS from Catalina to Monterey so I can install the MuseHub version. The OS upgrade on my 2016 vintage MBP has been a 2 hour nightmare.
In reply to Thanks, JoJo. Is there a… by michael_ellis
Not sure. But just ignoring the MU3 error is save here
Qt.quit() is wrong in any case
In reply to Thanks, JoJo. Is there a… by michael_ellis
Look at this one:
https://musescore.org/en/node/304874#comment-1001236
There is a syntax working nicely in MS3 and MS4 for dialog type plugins.
In reply to Look at this one: https:/… by parkingb
@parkingb,
Thanks. My plugin isn't a dialog type. The discussion you linked was interesting to read but it left me with the impression that no one has yet completely figured out a general solution for 3-4 compatibility. I'm going to leave my repo as is since it offers separate releases that work well in their respective versions.
That being said, I would gladly take a pull request that unifies them :-)
In reply to Thanks @parkingb, my plugin… by michael_ellis
That link mentions both types
In reply to Drop the 'Qt.' for n the 'Qt… by Jojo-Schmitz
Turned out to require more than that. For example, the logic for ranging over the notes in a score has changed significantly and the quit action is now, apparently best handled by an "escape" command at the end of the loop. Also, Mu3 doesn't recognize (and chokes on) the "thumbNail" property that's required by Mu4 for plugin logos.
I ended up freezing the MuseScore 3 version at release v1.0 of my repo and issuing a v2.0 release that's Mu4 only. Seems the best I can do for now. JoJo, thanks again for your help and Happy Holidays.
In reply to Turned out to require more… by michael_ellis
Check e.g. batch convert how to do the thumbnail in a portable way
In reply to Turned out to require more… by michael_ellis
Hi Michael, some things:
First of all, there's a mistake in your code. Line 112/73 (version 1.0/2.0),
n<7
should ben<6
. This keeps Fb from being marked as a double flat.Secondly, It's hard for users to get the plugin. Put short, your plugin is set as "3.x compatible" but only gives the 4.x compatible version, and I had to go through the git repository to get your version 1.0 of the plugin for MuseScore 3.x (which most users of MS don't know how to do).
Have a look at a plugin compatible for both MS 3 and 4 (e.g. the big time signature plugin https://musescore.org/en/project/bigtime-large-time-signatures). See how there's both a download for both MS 3.x and 4.x? It would be great if you did something like that too. And don't forget to mark the plugin as compatible for 3.x and 4.x.
In reply to Hi Michael, some things:… by MK140221
Changed the plugin page to mention 3.x and 4.x and their downloads.
My hints to make it compatible with Mu3 (to have only one version for both) are found further up
You mean this line?
In reply to fixed the plugin page to… by Jojo-Schmitz
Yes, and the corresponding line for v1 of the plugin. If you look at the code chart above that line it shows that -1 to 5 are the double flats, so n<6 is correct. Otherwise it marks Fb's as double flats, coloring them incorrectly.
Thanks for updating the plugin!
In reply to fixed the plugin page to… by Jojo-Schmitz
Hi, I downloaded the plugin and it still says n<7. Did you forget to update the code?
In reply to Hi, I downloaded the plugin… by MK140221
That's something for @michael_ellis to act upon