rnbo param integers only

charles spencer's icon

How can I restrict a param range to integer values only?

Jan M's icon

you can use the @steps attribute in the param object.

Here is an example for integer values between 0 and 127:

[param foo @min 0 @max 127 @steps 128]

charles spencer's icon

Didn't work. When I open the vst the parameter is still in decimal increments.

Jan M's icon

What happens if you define each integer value as an enum?
[param foo @min 0 @max 127 @enum 1 2 3 4 5 6 7 (...) 127 @steps 128]
does that work?