How to split a dial or slider into 4 interval values?

hexduhax's icon

hi , i just cant figure it out how to split a slider into 4 values i mean i want to change the custom interval when moving it (1,2,3,4...127) to (25,50,75,100).
pls help me! xD

Rodrigo's icon

There's probably more elegant ways but I've done something like this:

Essentially you can do it with scale. [scale 0 127 1 4], then follow that with [sel 1 2 3 4] and message boxes with the values you want.

Max Patch
Copy patch and select New From Clipboard in Max.

broc's icon

When using live.dial or live.slider: Open the inspector, set 'Range' to 0..100 and 'Steps' to 5.

hexduhax's icon

Done!!!!Thanks, Rodrigo and broc , i think im going to use Range and step , its the easiest way to do that ,im also going to experiment with the scale object , i think it could make nasty midi things!

thanks!!!