Hint needed to color notes according to the tone quality of their instrument
I would like to build on the colornotes plugin, to color the notes not only according to their pitch, but taking into account the instrument playing them. How from the plugin code do I learn what instrument is associated with the staff, and what, if any, subinstrument is in effect (e.g., mute or pizz.) for a particular chord?
What I'm trying to achieve: color the notes of a score according to their position on Arthur Lange's Spectratone Chart. This chart divides each orchestral instrument's playable range into one or more subranges of ten possible tone colors, each of which is mapped to a visual color.
For reference: https://www.alexanderpublishing.com/products/spectrotone-chart-download…