My idea is to create MIDI notes based on the RGB value of the pixel under the pointer i. For making this, I create a Midi pulse maping the Pixelarray variable with the pitch value of the Midi note. CLICK ON EACH COLOR OF THE ARROW AND DISCOVER A MELODY :)
This calibration is arbitrary: red is C? G is yellow?
You can change the code to match different notes to other colors.
Thanks and credits for their help to Victor A. Gil when joining both codes and to Diego Vargas when searching the variable of the color in Pixelarray: aPixels[int(signal)]
To tweak this sketch, first download it.
Make your updates, then upload your tweak!