Automatically Colour Notes
I play an instrument that is a combination of two whole-tone scales: the double-second steelpan (alto steel drum)
I’d like to run a plug-in on my MuseScore compositions and arrangements that automatically colours certain notes red (the left side of my instrument) and other notes green (the right side of my instrument).
Left (red)… “C D E F# G# A#” or “C D E G♭ A♭ B♭“
Right (green)… “C♭ D♭ E♭ F G A” or “B C# D# F G A”
I’ve attached a few example scores to show what this might look like. However this is based on LH/RH (left-hand red and right-hand green). Although C and E are both on the left side of the instrument and therefore would both come out red in the automated script I’m looking for, in reality if you wanted to play C major then you’d play C with the left hand (red) and E with the right hand (green). This is fine for my purposes and can be easily overcome.
Moonlight Sonata (Play it on Pan).mscz ( online: https://musescore.com/user/30791751/scores/5914238 )
The Entertainer (UrbanSmash Solo).mscz ( online: https://musescore.com/user/30791751/scores/5595582 )
Is This Love (Play it on Pan).mscz ( not online until public domain year 2051 )
How would I write code for MuseScore to automate this colour coding?
Any ideas and suggestions very much appreciated.
Best wishes,
Tony
UrbanSmash
Play it on Pan
Attachment | Size |
---|---|
56933CAD-F7F9-492A-B655-B0A1FE2053B4.jpeg | 898.12 KB |
Moonlight Sonata (Play it on Pan).mscz | 239.52 KB |
The Entertainer (UrbanSmash Solo).mscz | 50.61 KB |
Is This Love (Play it on Pan).mscz | 41.11 KB |
Comments
You could write a plugin for this, taking colornotes as an example
In reply to You could write a plugin for… by Jojo-Schmitz
I'm a bit rusty on programming but would using your trumpet fingering plugin work with some modifications? Since it's pitch-based, could you change the fingering text (1 - 2 - 1,2 - 1,3 - 2,3 - 1,2,3) to a simple binary variable for each pitch and then add in a IF line to change the note colour based on the variable? That would cope with the fact that there some notes in different octaves on different hands - a purely note-name Plugin would miss that?
In reply to I'm a bit rusty on… by underquark
Hi @underquark
I’d suggest creating a new topic …as this particular support forum question is about modifying the colornotes plugin. Perhaps you commented on this post in error?
In reply to You could write a plugin for… by Jojo-Schmitz
Thank you JoJo. I was calling it a script or macro. Thank you for introducing me to the world of MuseScore plug-ins.
You are welcome.
(If you like to colour accidentals and dots as well, just uncomment it in plugin source)
In reply to You are welcome. (If you… by sammik
Sammik,
Thank you so much! This is phenomenal. Probably quite simple but incredibly useful. Worked perfectly first time and a fantastic time-saver. Thank you again!
Respect and manners.
Tony UrbanSmash