dial range with size attribute?

Nov 13, 2011 at 9:08pm

dial range with size attribute?

I posted this as part of an answer to another thread but I’m curious to know whether this is normal, a bug, or what. When I specify the size for a dial and the dial has float output off the range is 0 to size-1. When I specify the size for a dial and the dial has float output on the range is 0 to size. Hmmm?

– Pasted Max Patch, click to expand. –
#59992
Nov 13, 2011 at 11:02pm

Apparently for integer the size is defined by ‘Number of Steps’ (360 steps –> values 0-359).

#216001
Nov 14, 2011 at 12:37am

What exactly does the number of steps mean?
When I turn the integer dial it jumps 0, 9, 18, 27… and seems to have 40 steps between 0 and 359.
The float output dial does the exact same thing except for landing on 360 instead of 359 on the last step.

#216002
Nov 14, 2011 at 12:45am

In integer (default) mode Range represents the number of possible values, including lowest and highest values.

In float mode the Range represents the numerical distance between the minimum and maximum value but does not give any indication about the number of values but usually you get a much higher number.

#216003
Nov 14, 2011 at 1:23am

First, thank you both for your help and information.

I guess my initial purpose for the post was to suggest that it would be better if these were consistent. Probably making the float version agree with the integer version – number of values possible in a zero-based system. The highest possible value = size minus one.

All of this however does lead me to a question I’ve wondered about before: why do the values jump in such large increments when I turn the dial? The on-screen dial really can’t be used for fine-tuning. Am I missing something?

#216004
Nov 14, 2011 at 4:49pm

Hold shift key while turning the dial, the values will change with a smaller increment.

#216005
Nov 14, 2011 at 11:03pm

Thank you. That’s very helpful.

I notice that in “shift-clicking” my example patch, with a size of 360, the integer version jumps in increments of 2. The float version by 1.8. Still not really what I would call fine control.

BTW, where is this technique documented? Do other UI elements have similar functionality?

#216006

You must be logged in to reply to this topic.