hi jules, since i’m using the MidiKeyboardComponent a lot, and i need to specialize it to let it be in sync with a midi grid:
mainly it paints white/black keys with different widths (regardless of setKeyWidth calls), so doing a conversion function from mouse position to note/beat is quite cpu consuming cause i have to keep track of the painted midi keyboard widths offsets.
so i need it to paint and behave a little different, but all members are private
should be done by the component before calling the getKeyPosition function (so don’t rely on checks made by the subclassed component).
also, doing -xOffset should be avoided from that function (i shouldn’t know the x offset, nor touch it directly), and rather done outside the call.