how to colour chord symbols
I've found a plugin that colours the notes automatically, I've modified it a little to suit but I want to be able to colour the chords too- but going around in circles trying to figure out how to do it. I want to colour them pretty much like hooktheory but rainbow colours ROYGBIV instead. So in a major key I will be red, ii orange, iii Yellow etc, and in minor i will be Indigo, III will be red etc. I can't work out whether it's chordsymbol, or harmony or what it is to colour, and how to do it, not a programmer. I'll attach how it is so far. Any help is appreciated.
Attachment | Size |
---|---|
modified functional colour.qml | 10.03 KB |
Comments
EDIT: Or less cryptic:
var segment = curScore.firstSegment();
while (segment) {
var aCount = 0;
var annotation = segment.annotations[aCount];
while (annotation) {
It's
if (annotation.type == Element.HARMONY) {
& if (annotation.color == "#ff0000")
annotation.color could be read only...
In reply to It's if (annotation.type ==… by elsewhere
Thanks so much for your speedy reply. I'm a little unsure where to put this in the plugin I attached- I tried putting it under a functioncolorharmony but it just crashed musescore both times. My programming knowledge is almost nil, so will have to get help from someone who knows where to put this before I can make use of it.
Might be an addition to the color notes plugin, to also color chord symbols (and in the same colors)
In reply to Might be an addition to the… by Jojo-Schmitz
Yes, that would be great, I couldn't find one though. If there is please send the link. The color notes plugin colours them Red for C, Orange for D etc. The system I use is like hook theory so the colours relate to the scale degrees rather than the pitch of the note- which makes transposing music a piece of cake. The plugin I was working off initially was this hooktheory one https://musescore.org/en/project/color-notes-diatonic-pitch-based-hook-… but then I just found this one https://musescore.org/en/project/functional-harmony-functional-colors that works out the key automatically so I like this one better and that's the basis of the one I attached. But if there was an addition to the color notes plugin that coloured the chord symbols in too, that would be fantastic, then I can just transpose the music into C major, colour the chords in with the plugin, and then transpose it back to the key I wanted it in and the colours would stay the same. And seeing the code for the addition to the color notes plugin would hopefully show me what I needed to know to modify the other plugin.
In reply to Yes, that would be great, I… by madhumita
I believe it is part of the installation
In reply to I believe it is part of the… by Jojo-Schmitz
Perhaps it is in Musescore 4 but unfortunately I can't get that on my 11 year old computer. Is there are way you could send the code for it and I can see how it's done, hopefully figure out what to use from it? Thanks
In reply to Perhaps it is in Musescore 4… by madhumita
It is in Mu3 too, see https://musescore.org/en/handbook/3/plugins#color-notes
In reply to It is in Mu3 too by Jojo-Schmitz
yes the plugin is there but it doesn't colour the chord symbols
In reply to yes the plugin is there but… by madhumita
I know, that's why I wrote that it might be a nice extension to it to also color chord symbols
In reply to yes the plugin is there but… by madhumita
I know, that's why I wrote that it might be a nice addition to it to also color chord symbols
In reply to I know, that's why I wrote… by Jojo-Schmitz
Oh, i must have misunderstood one of your earlier messages then. Yes, I agree it will be a very nice addition to it.