I'm trying to assign a midi slider to a gain~ object with a catch behaviour, meaning that I have to match the gain~ slider value with the MIDI slider before taking control of it so as to avoid any unexpected jumps in gain.
Now the way I did it was with a == object comparing both gain~ slider value with midi value, connected to a gate letting the MIDI signal through to the gain~ object only when the two signals matched. It works perfectly except for one thing, my slider doesn't output perfectly continuous data and jumps steps when moved fast, which means loosing control of the slider whenever moving it too quickly. Now I've been trying to find a way to interpolate numbers between the gaps in midi data, and have not been able so far to find a good solution. I'm sure it's quite simple though. Any idea ? Any help would be much appreciated, thanks !
Here's a simplified version of my patch :