Improving Plugin "Color Notes"

• Aug 9, 2017 - 20:19

Hi there.
The actual plugin Plugin "Color Notes" only allows the score to have a fixed standard color set, i.e. C is always red, E is always yellow, etc.
However, Finale allows you to change the color as you wish.
Actually, I know a composer who argues that E has this violet color, basing on a theory of equivalency of frequency, which means that if A is 440 hz or 880 hz or 1760 hz, the color correspondent is the light frequency that will match an A octave. This means that if we follow this theory, the sound frequency for A correspond to the same frequency of the color yellow.
Anyway, the colors are nice for me to train my students who are playing C Clef ( I am a cello teacher ) - So it saves the time when they write the name of each note to not get lost in the reading.
Thank you.


Comments

You can change the colors by editing the plugin.
Having this as a full feature in the plugin would require a GUI, possible, but quite some programming work.

In reply to by Jojo-Schmitz

thanks but,,, I am a cello player/teacher not a software developer - I have no idea how to do this - I thought this forum was made for requesting stuff you are in the need, not for me to make it through.
I thought it was made for request the feature and then one will get in the next version.
I mean, I know there are lot of wise tech guys around, but unfortunately I am not having this knowledge, apparently.

In reply to by Danilo Chaib

Sure, some day some developer may come along and find this usefull and worth his time and implements such a color picker gui for this plugin.
But it really doesn't take a software developer to edit a text file to change a couple words.
If you can not, attach a score here with a scale you colored to your needs and I'll change the plugin to create these colors.

In reply to by Danilo Chaib

I need a score, not Images.

Edit: Ah, these Images should do, they show the RGB values Just fine.

In [[https://github.com/musescore/MuseScore/blob/master/share/plugins/colorn…|lines 23-28 of that plugin]] there is an array of 12 hexadecimal RGB color codes, 1st element for C, 2nd for C#/Db, 3rd for D, etc.

For C this is "#e21c48", ("#rrggbb") as per the images you want decimal 91, 87, 166, this is hex 5b, 57, a6, so results in "#5b57a6", the other values change following this pattern.

You can ease the calculation by using MuseScore color picker, which does create thet "#rrggbb" string for you:

colorpicker.png

Let me know whether the attached qml file fits your needs

Attachment Size
colornotes.qml 5.07 KB
colorpicker.png 83.11 KB

In reply to by Jojo-Schmitz

I opened it in a TXT format, but it’s difficult to edit. Now I opened through Musescore but it does not save changes. Then I created another plugin and put it in Musescore, but the color of the notes does not match what I need. I cannot understand where my mistake is. Please, help me solve the problem.
I need this
"#00d100", // C
"#00d100", // C#
"#ffff00", // Db
"#ffff00", // D
"#ffff00", // D#
"#026cc8", // Eb
"#026cc8", // E
"#fda900", // F
"#fda900", // F#
"#fa1000", // Gb
"#fa1000", // G
"#fa1000", // G#
"#b30ec8", // Ab
"#b30ec8", // A
"#b30ec8", // A#
"#919cb4", // Bb
"#919cb4" // B

In reply to by Helen-kat

Of course. You invented pitches that don't exist. That plugin doesn't make a distinction between C# and Db or D# and Eb or F# and Gb or A# and Bb. There are just 12 different semitones available for note.pitch, your array has 17.
Instead of note.pitch it probably needs to pick on note.tpc, tonal pitch class, check https://musescore.org/en/handbook/developers-handbook/plugin-developmen…, there are 35 of them (including ## and bb)

In reply to by Helen-kat

OK here is the tpc version for everyone :).
No need to specify Sharp or Flats, the plugin sets itself.
If you want to change colors: Just set the basic note colors in the first section.

Notice: The file "_test-colorNotes.mscz" doesn't contain coloring. This file is designed to test the plugin. And it contains all the sharps and flats and some dotted notes and a few grace notes.

Attachment Size
ColorNotes_tpc.qml 5.55 KB
_test-colorNotes.mscz 26.35 KB

In reply to by abarim

Sorry, you cannot use 12 different colors / notes in this plug-in.
Just basic 7 notes. And accidentals are calculated automatically.
This plug-in has been adapted to solve the problem in this topic.

(In fact, there are 35 different note definitions in tpc, not just 12.)

And what you want to do is on the wrong basis. (according to the image you added)
These are Major and Minor tones, aren't separate notes.
For example, what color should the note "Ax" be in the G#-minor?
and the difference between "A" and "Ab" is defined by color, but what color should be "A#"?

( I'd appreciate it if you just answered it according to the image you added, without adding anything new..)

In reply to by Ziya Mete Demircan

Basicly, I would like to do the same thing that Danilo Chaib did, but with different colors.


Sorry, you cannot use 12 different colors / notes in this plug-in.
Just basic 7 notes. And accidentals are calculated automatically.
This plug-in has been adapted to solve the problem in this topic.

(In fact, there are 35 different note definitions in tpc, not just 12.)

And what you want to do is on the wrong basis. (according to the image you added)
These are Major and Minor tones, aren't separate notes.
Answer: yes I see your point. I wasn't very clear about it. In this colored circle of fifth graph, the tone color is the same as the note color.

For example, what color should the note "Ax" be in the G#-minor?
Answer: Ax color stays the same in every major and minor scale, Ax color is tan or "red EA green C0 blue 30."

and the difference between "A" and "Ab" is defined by color, but what color should be "A#"?
Answer: In this colored circle of fifth graph, the tone color is the same as the note color. I know it's note the same note, but in this graph, the color of A# is the same as that of Bb, purple, or B flat "red 89 green 44 blue 9D."

( I'd appreciate it if you just answered it according to the image you added, without adding anything new..)
Answer: thank you for trying to help me out. I really appreciate that.

red green blue

C FA 06 06
G E6 5B 34
D F9 7A 07
A EA C0 30
E FA F8 07
B 27 F5 0C
F# 52 9E 44
C# 2C A6 CF
A flat 06 0B FA
E flat 36 18 94
B flat 89 44 9D
F FA 6A DC

Attachment Size
color notes on circle of fifth.jpg 276.49 KB

In reply to by Jojo-Schmitz

Hello Jojo - The notes I have been learning have been given different colours compared to the ones that come with the regular colour notes plugin. I've been unable to find how I can successfully change the colours in that plugin despite many attempts.

Thank you, yes, but I will report some limitation I've found: for some reason, it only "paints" the notes. Once I get the notes "painted", if I change some note , the color will be the same as it was. For example, if I did the plugin at the score I sent last comment, and then put all the notes of the first bar in G, I will have the original colors. To sum up, colors did not follow the "pitch" after applying the plugin. I think the original plugin has the same limitation, but I only have noticed now as I was testing it with yours. Thank you again!!

Attachment Size
ColorDidNotFollowafterPllyingPlugin.png 49.32 KB

That is not a bug, but by design. To have what you want, the coloring would need to get integrated into the code rather than being a plugin.

Just run the plugin again and twice (and on the same selection), once to turn everything black and again to color to the current pitches

In reply to by Jojo-Schmitz

Hi Jojo-Schmitz,
I've tried to change the plugin this time to A=yellow
I did:
property variant colors : [
"#5b57a6", // D
"#9665ab", // D#/Eb
"#ee4d9b", // E
"#e21c48", // F
"#f37021", // F#/Gb
"#f99d1c", // G
"#ffcc32", // G#/Ab
"#fff32b", // A
"#d5e15b", // A#/Bb
"#62bb46", // B
"#009c13", // C
"#0077c0" // C#/Db

but something went wrong, as G still remained yellow
Can you help me?
Thank you

In reply to by Danilo Chaib

Never Mind! I found it!
I did

           "#009c13", // C
           "#0077c0", // C#/Db
           "#5b57a6", // D
           "#9665ab", // D#/Eb
           "#ee4d9b", // E
           "#e21c48", // F
           "#f37021", // F#/Gb
           "#f99d1c", // G
           "#ffcc32", // G#/Ab
           "#fff32b", // A
           "#d5e15b", // A#/Bb
           "#62bb46",  // B

And it worked!!
Thank you again!!!

In reply to by Danilo Chaib

how did you do it? I can't specify the colors for semitones.By semitones, I mean sharp and flat.
here are my goals
red green blue
C FA 6 6
G E6 5B 34
D F9 7A 7
A EA C0 30
E FA F8 7
B 27 F5 C
F# 52 9E 44
C# 2C A6 CF
A flat 6 B FA
E flat 36 18 94
B flat 89 44 9D
F FA 6A DC

In reply to by Danilo Chaib

Could you explain to me how you did it? I would like to do the same. but with my own colors.
red green blue
C FA 06 06
G E6 5B 34
D F9 7A 07
A EA C0 30
E FA F8 07
B 27 F5 0C
F# 52 9E 44
C# 2C A6 CF
A flat 6 B FA
E flat 36 18 94
B flat 89 44 9D
F FA 6A DC

In reply to by Danilo Chaib

G still remained yellow.
(Probably the other notes did not change, as well.)

It is the array of RGB values that matters, not the names of the pitches. The note names serve as a guide for humans. Double slashes are the tipoff. The first value in that array is for note C - even if you happen to write 'D' (or anything else) there.

Regards.

Do you still have an unanswered question? Please log in first to post your question.