Where to set values for compressor unit via inc dec button


I’m new to Juce. I’m designing an audio user-friendly compressor tool that changes the parameters via an inc/dec button with 5 presets, with no more complex controls for not advanced audio users such as attack, release etc. I am working on it via an inc/dec button, and setting the parameters for 5 options of compression: 1 is low compression and 5 is high comp.

I’ve tried doing it on procesBlock function,but I think is too much workload for a buffer to do the comprobation of which number is on inc/dec button each call of processBlock,and then set up the compression parameters.

Hope I’ve explained well… Can anybody more experienced help with a better idea

Thank you very much!