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