Forums > Max For Live

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

October 26, 2011 | 8:45 pm

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


October 26, 2011 | 9:10 pm

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.

– Pasted Max Patch, click to expand. –

October 26, 2011 | 9:16 pm

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


October 26, 2011 | 10:38 pm

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!!!


Viewing 4 posts - 1 through 4 (of 4 total)