Endless Knobs


    Nov 06 2007 | 10:04 pm
    How can I create a knob object that can spin 360 degrees but also know how many times it's been spun so that its range of values is infinite? I basically want it to behave like a number box, but look like a knob. Has anyone done this? Thanks.

    • Nov 06 2007 | 10:35 pm
      like this...?
      That's the sort of thing i might never have thought of making if not
      for the question being asked...
      On 06/11/2007, randy wrote:
      >
      > How can I create a knob object that can spin 360 degrees but also know how many times it's been spun so that its range of values is infinite? I basically want it to behave like a number box, but look like a knob. Has anyone done this? Thanks.
      >
    • Nov 06 2007 | 10:38 pm
      Exactly! That makes my interface so much more intuitive. Thanks so much.
    • Nov 06 2007 | 10:45 pm
      ... I should have tested that a bit more before posting, its a bit
      buggy... i'm sure someone can improve on this:
      (same patch with multislider display of output):
      On 06/11/2007, randy wrote:
      >
      > How can I create a knob object that can spin 360 degrees but also know how many times it's been spun so that its range of values is infinite? I basically want it to behave like a number box, but look like a knob. Has anyone done this? Thanks.
      >
    • Nov 06 2007 | 11:00 pm
      I see, so it gets confused when you spin too fast... You can get around this if you turn off vertical tracking, but that would be a nice feature to keep.
    • Nov 07 2007 | 7:26 am
    • Nov 07 2007 | 5:48 pm
      This works for me for all cases. My intuition says there must be an
      easier way to do it, but perhaps not.
      max v2;
      Barry Threw
      Media Art and Technology
      San Francisco, CA Work: 857-544-3967
      Email: bthrew@gmail.com
      IM: captogreadmore (AIM)
      http:/www.barrythrew.com
    • Nov 07 2007 | 6:44 pm
      At 9:48 AM -0800 11/7/07, barry threw wrote:
      >This works for me for all cases. My intuition says there must be an easier way to do it, but perhaps not.
      It doesn't have jitter, but if you turn on vertical tracking you can see that it changes more slowly the faster you move. Here's your example w/ vertical tracking on and an LCD to display data:
      --
      Chris Muir | "There are many futures and only one status quo.
      cbm@well.com | This is why conservatives mostly agree,
      http://www.xfade.com | and radicals always argue." - Brian Eno
    • Nov 07 2007 | 7:17 pm
      These are all good solutions. An easy way to do this would be to use the jsui knob and adjust the script so that it doesn't output %1. Look in the msg_float function. js file attached.
      max v2;
    • Nov 08 2007 | 4:02 am
      That's an ideal solution for keeping the vertical tracking, but a nice feature the built in knobs have is resetting the mouse position once it reaches the top or bottom of the screen, allowing you to continue spinning the knob without finding it and clicking on it again after you run out of room. Any chance you know how to implement that?
    • Nov 08 2007 | 5:20 am
      Here's something, but I had to do the noMod stuff in max. The js file is different, so download this one.
      max v2;
    • Nov 08 2007 | 7:04 am
      randy schrieb:
      > I see, so it gets confused when you spin too fast... You can get
      > around this if you turn off vertical tracking, but that would be a
      > nice feature to keep.
      Another version which will also move faster if you turn it faster:
      --
      Stefan Tiedje------------x-------
      --_____-----------|--------------
      --(_|_ ----|-----|-----()-------
      -- _|_)----|-----()--------------
      ----------()--------www.ccmix.com