How to .setMax() for a knob

Hi, At one point I thought to change the max value of a knob. It is not the way to do it, is it? (My appologies, I’m still struggling with the basics.)

paramQuantities[KNOB1_PARAM].setMax(8)
1 Like

Generally its better to keep the range of the knob constant, and scale the param value before you use it.

Changing the knob range presents difficulties when you load and save the patch, and even when you lower the max value below the current value. Its difficult to make a good user experience that way

1 Like

Thank you for the advice, David! I’ll rather avoid it then. I figure out something else.