I have been trying to sync a ~waveform window and a function window so that a user can use the waveform as a guide when adding points. I have the two windows overlaid and I am using a standard rslider to pan and zoom (with a little math to manage the ~waveform window since its zoom and pan require different input than the function.)
Even with the math seemingly correct, the two types of widows behave differently, and I am having trouble figuring out how they differ. One slip along the other, especially when zoomed in close.
My goal is to allow a user to adjust the color and intensity of lights during playback of sounds.
Here is my example patch: