@prehm said in how to get the areas of a floating tile keyboard into an array:
I have my logic in place and working
So I assume you have an array that contains the low note and high note of your playable range?
What you need to do is loop over all of the MIDI notes (0 - 127) and set them to your neutral colour.
Within the same loop you check if the MIDI number is within the range that's in your array, and if it is you set that to your active colour.
Then inside your look and feel function you can just grab the key colour from obj and draw the key. None of the functional stuff needs to go inside the laf.