Someone must have written a module for taking mouse dragging input on a graph and turning it into a lookup table for mapping an input value to an output value - but I can’t find an example.
It could be either columns for each value, or a line graph.
Has anyone got an example? I’m getting a bit stuck.
Redrawing 128 columns on every drag is inefficient, but making each column its own component is tricky when dragging as enter and exit calls don’t work on drag.
Calling repaint on the whole graph for every pixel mouse movement can’t be a good thing, but avoiding that seems to be working against the structures that are there.
There must be an easy way and I imagine it has been done loads of times for synths and midi stuff.
This is the first time I’ve tried to draw anything in Juce so I may be making total noob mistakes.