I have instantiated a sample peak meter in my plugin, which takes the maximum value of each sample within the buffer per channel, and uses that value to paint a section of the GUI green. Right now, the meter works, and is pretty jumpy. I am trying to smooth out the response. I have tried everything I know from LinearInterpolation on the processor side, to using a SmoothedValue on both the processor and the editor, to changing the frame rate of repaint() using Timer. I just can’t seem to find something that works.
My thought is that if I could build a decay function for the meter that interpolates the value of what the editor is to paint, rather than showing the values all in instantaneous, real time. Do you all know how to accomplish something like that?