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

Oct 26, 2011 at 8:45pm

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

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

#59570
Oct 26, 2011 at 9:10pm

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. –
#214371
Oct 26, 2011 at 9:16pm

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

#214372
Oct 26, 2011 at 10:38pm

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

#214373

You must be logged in to reply to this topic.