i have a midi editing grid component, which is strict contact with a a side midi keyboard component. i’ve removed the scrollbarButtons from the midi keyboard cause the user can’t scroll with that.
but the user can mouse wheel over the grid, to scroll up and down the available rows (midi notes), and i need to keep in sync the grid and the midi keys.
from the main component, if i catch up a mouse wheel, i update the grid row offset start / end notes, and i set the “setLowestVisibleKey” of the midi keyboard to the same start offset value (i borrowed the code from the UpDownScrollButton in MidikeyboardComponent to scroll by an octave).
the problem is that the midi keyboard doesn’t scroll like the grid.
how i’m supposed to scroll programmatically a midi keyboard without the scroll buttons (with scroll buttons calling “setLowestVisibleKey” works) ?