Redefine colors in the Color Notes plug-in
Hi there,
I am very excited about the color notes plug-in, and I was able to successfully apply it to a section of music.
I would like to redefine the colors, however, to the rainbow scheme as introduced to Solfege by Isaac Newton.
Can this change be made by one of the developers? I would like to do the coding myself, but I am not sure why the program wont run after I copy and paste Ziya Mete Demircan's .txt file into the plug-in creator. Please advise.
Best,
Anthony
Comments
It isn't a .txt file, but a .qml file. It is plain text though, so can get edited with any half-way decent plain text editor.
The plugin editor should be sufficient.
But please mention which file, from where, you're referring to
In reply to It isn't a .txt file, but a … by Jojo-Schmitz
Can the color notes plugin correspond to the colors of the rainbow rather than boomwhacker convention? I need a faster way to toggle my color notes. Creating the plugin from scratch/re-running the code is just too tedious whenever I want to see my melodies in color.
In reply to Can the color notes plugin… by Baquiat1981
But that is what you'd need to do
In reply to But that is what you'd need… by Jojo-Schmitz
I am not a software developer.
In reply to I am not a software… by Baquiat1981
It is really just editing a text file
You'd need to install and enable that plugin (https://musescore.org/en/project/colornotestpc), see https://musescore.org/en/handbook/plugins#installation
In reply to You'd need to install that… by Jojo-Schmitz
The plugin is installed in my program--that is, I can select it from my plugin manager. I just don't know how to then edit the code from there
In reply to The plugin is installed in… by Baquiat1981
Open it in the plugin editor
In reply to Open it in the plugin editor by Jojo-Schmitz
Which file specifically? They are all greyed out when I try to select them.
In reply to Which file specifically? … by Baquiat1981
File greyed out? In The plugin editor??
In reply to File greyed out? In The… by Jojo-Schmitz
Can you please tell me what the plugin editor is? I see "plugin manager" and "plugin creator"
In reply to Can you please tell me what… by Baquiat1981
Oops, sorry, I meant the latter, plugin creator. Which also is an editor ;-)
In reply to Oops, sorry, I meant the… by Jojo-Schmitz
Right, so the plugin creator lets you open a file from your computer. And I cannot select any of the files. Am I supposed to just copy and paste the program into the creator?
In reply to Right, so the plugin creator… by Baquiat1981
In reply to [inline:plugin-creator-01… by Ziya Mete Demircan
Ah, I had to drop the file into the plugins folder from the program creator. Now, how should I edit the program before running it to change the colors?
In reply to Ah, I had to drop the file… by Baquiat1981
It doesn't look like the notes can be redefined in the code because they've already been assigned according to the Boomwhacker convention?
In reply to It doesn't look like the… by Baquiat1981
You can change it to your own taste (or any other color definition you want to match).
To avoid confusion, you can change the "Boomwhacker convention" description in the code, like: "Anthony Morabi's own defined colors".
In reply to You can change it to your… by Ziya Mete Demircan
Are those Hex color codes??
In reply to Are those Hex color codes?? by Baquiat1981
Yes. In MuseScore color picker you can set/test a color and grab the hexcode
In reply to Yes by Jojo-Schmitz
will any hex code pulled from the internet work? Additionally, are these assigned to notes (D, E, F# G . . . ) or scale degrees (^1, ^2, ^3, ^4 . . . )? Thanks.
In reply to will any hex code pulled… by Baquiat1981
When in doubt, try it out
In reply to When in doubt, try it out by Jojo-Schmitz
I have. I used the hex codes for the rainbow (provided on wikipedia) and the program kicked out like three yellows. Ill keep trying
In reply to I have. I used the hex… by Baquiat1981
I just need someone to explain the logic here to me so that I can better understand the program:
property string noteC : "#FF0000";
property string noteD : "##FF7F00";
property string noteE : "FFFF00";
property string noteF : "#00FF00";
property string noteG : "#0000FF";
property string noteA : "#2E2B5F";
property string noteB : "#8B00FF";
property variant colors : [ noteF, noteC, noteG, noteD, noteA, noteE, noteB, noteF, noteC, noteG, noteD, noteA, noteE, noteB, noteF, noteC, noteG, noteD, noteA, noteE, noteB, noteF, noteC, noteG, noteD, noteA, noteE, noteB, noteF, noteC, noteG, noteD, noteA, noteE, noteB ]
In reply to I just need someone to… by Baquiat1981
I see the typos. Just made those changes.
In reply to I see the typos. Just made… by Baquiat1981
voila
In reply to voila by Baquiat1981
Colorful ;-)
In reply to voila by Baquiat1981
Now, for changing keys, can I just change the note names on the left hand side?
In reply to Now, for changing keys, can… by Baquiat1981
I guess so. But as said earlier: when in doubt, try it out
In reply to I just need someone to… by Baquiat1981
Do not touch (or change) the "property variant colors" section. That part is prepared for tpc.
It is used to color notes, usually to color each note in note training.
Different schools have different color uses.
The student usually memorizes like "C is red" or "C is blue".
But whatever color he learned, he continues with it. Colors do not change for each different key. These colors are often matched to the piano keys or notes.
It didn't make sense to use different colors for each different Key.
In reply to Do not touch (or change) the… by Ziya Mete Demircan
I'm familiar with moveable solège. So, for me, 'do' is red, with 'do' simply being the first scale degree of whichever key you are in. So, it looks like I will need to go into the program every time I want to change keys. That is okay, I just need to figure out how to manage these files.
In reply to I'm familiar with moveable… by Baquiat1981
It is quite tedious not only have to change the code for every key change, but also for running the program for every new phrase written. Is there any chance the developer could make this plugin more user-friendly? It would make composing so much easier for me.
In reply to It is quite tedious not only… by Baquiat1981
Any ideas why some notes are working with the code and others aren't? Note: this is b-flat major
In reply to Any ideas why some notes are… by Baquiat1981
And here's the code:
import QtQuick 2.2
import MuseScore 3.0
MuseScore {
version: "3.0"
description: qsTr("This plugin colors notes in the selection depending on their pitch as per the RAINBOW")
menuPath: "Plugins.Notes.Color Notes tpc"
// "#rrggbb" with rr, gg, and bb being the hex values for red, green, and blue, respectively
property string noteC : "#FF7F00";
property string noteD : "#FFFF00";
property string noteE : "#00FF00";
property string noteF : "#0000FF";
property string noteG : "#2E2B5F";
property string note : "#8B00FF";
property variant colors : [ noteF, noteC, noteG, noteD, noteA, noteE, noteB, noteF, noteC, noteG, noteD, noteA, noteE, noteB, noteF, noteC, noteG, noteD, noteA, noteE, noteB, noteF, noteC, noteG, noteD, noteA, noteE, noteB, noteF, noteC, noteG, noteD, noteA, noteE, noteB ]
}
In reply to And here's the code: import… by Baquiat1981
The plugin toggles not colors between colored and black. So if those notes weren't black when you ran the plugin, the plugin will have turned them black.
In reply to The plugin toggles not… by jeetee
Thanks @jeetee. That worked.
Is there a way to make the plugin recognize different keys? That way I don't have to edit the code every time I switch to a song that is in a different key? Thanks.
In reply to Is there a way to make the… by Baquiat1981
Just following up here. Still manually re-defining the code everytime I switch keys!
In reply to Just following up here. … by Baquiat1981
There is
Cursor.keySignature
which might help you out here: https://musescore.github.io/MuseScore_PluginAPI_Docs/plugins/html/class…In reply to There is Cursor.keySignature… by jeetee
I am not too savvy with the plugins--having trouble following this.