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?
----------begin_max5_patcher---------- 427.3oc2V98aBBCDG+Y3uhl9LyPaAIt21eGKFSApZWvhAJItY7+8QO9g3lhL Wz47EHb20691O8ZKassvgoaD4XzynWQVVassr.SFCV0eagWw2DkvygvvbsNq PhcpboJVkVnSDZvIo157TkNW9g.rQG4VatJR86qEUEDiQSqcYxJj94IobcYf qKzM0PFCdRCe6IRis0bczRoZwrLQjtJaDOxHeGD0yurfHByy7h5NxssHFYo3 qfpieISxS5LMjp1Ygw1NaayCm6Cp.C663vysOdP8Ad3NF3gu6iOOXS5gGLJo h.Of7n+cMrf9vBK..wex1lRcWliiiE5ODK.CvNHbHWsXOi5xAx42tvp5K9Ec GskHqLXsHalPwCSfg4dAHJ9vBcj9lSPhiR.1.NvXBzI3417rMQCedV6qYYiM tLM28sGzfye5w+v1itmMbYcMT1.NV8520.YDmHUe8GV.UYreHmxSKxhZlcMW Wh1KrXQtVp3ZYppSPlsHcBZoLNVn5JuXYtQwwmdEan5wbc0Y0C8Fpmf6L8vF x5E4loG5PzCM3loGx0rcFM0dm8m.OQkxNB -----------end_max5_patcher-----------
Apparently for integer the size is defined by ‘Number of Steps’ (360 steps –> values 0-359).
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.
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.
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?
Hold shift key while turning the dial, the values will change with a smaller increment.
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?
Forums > MaxMSP