Variable max midi value needed.. how can I do this?

Hi everyone, I’m experimenting with variable effects parameters per effects type. We all know how difficult it can be to know what parameters are applicable for ech of the fx and what their purpose is.

This however I found a way to solve with the E1, go have a look at the lua code of the Blofeld preset.

But the current preset presents a new challenge: the maximum midi value I can apply to a parameter is different for each of the effects!

How can I use lua code to change the maximum midi value a parameter may have (encircled in yellow)?

Mind you, I’m perfectly able to change the maximum control value (crssoed through in red) but this is not what I’m looking for.