Color notes using midi note names
I know almost nothing about using computer language.
I downloaded the Color Notes Plugin and changed it (with a text editor) so I could color notes with custom colors (e.g. make all notes gray except B which will be red and C which will be green). It works! I'm running it in Plugin Creator.
Problem - notes of different pitches are the same color - as in example above all Bs are red and all Cs are green.
Is there a way to make, for instance, C4 grey, C5 green, and C6 gray?
I found "midi note names" where C4 is 60, C5 is 72, etc. Can I use the midi note name somehow to designate a color and how would I phrase it in a plugin?
(Yes, I'm aware that not everyone agrees that middle C is C4. In fact I need the colored notes for handchime music where middle C is C5 but it seems like a trivial problem to fix that in my plugin.)