endless cycle number box


    Aug 14 2007 | 7:55 pm
    how to do ?
    it's ok when up but i can't do it when down.
    i mean:
    1, 2, 3, 4, 1, 2, 3, 4, etc is ok
    but i can't find how to do 1, 4, 3, 2, 1, etc...
    help please.

    • Aug 14 2007 | 8:09 pm
      Have you tried "counter"? Gives you various directions.
      On 14/08/07, fp wrote:
      >
      > how to do ?
      > it's ok when up but i can't do it when down.
      > i mean:
      > 1, 2, 3, 4, 1, 2, 3, 4, etc is ok
      > but i can't find how to do 1, 4, 3, 2, 1, etc...
      >
      > help please.
      >
      > #P window setfont "Sans Serif" 9.;
      > #P number 66 166 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P window linecount 1;
      > #P message 91 134 39 196617 set $1;
      > #P newex 69 115 32 196617 sel 0;
      > #P newex 69 95 34 196617 % 10;
      > #P newex 69 76 23 196617 abs;
      > #P number 69 59 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P connect 3 1 5 0;
      > #P connect 3 1 4 0;
      > #P fasten 4 0 0 0 96 154 131 154 131 54 74 54;
      > #P connect 0 0 1 0;
      > #P connect 1 0 2 0;
      > #P connect 2 0 3 0;
      > #P window clipboard copycount 6;
      >
      > --
      > ------------------------
      > - www.pan-etc.net -
      > ------------------------
      >
      --
      Pere Josep Villez
      Course Leader
      Creative and Computational Sound (Max/Msp)
      Department of Creative Technologies
      University of Portsmouth
      36-40 Middle Street
      Portsmouth
      PO5
      Tel 00 44 23 9284 8484
      www.centuryofnoise.com
      www.perevillez.com
    • Aug 14 2007 | 8:10 pm
      Hi,
      something like this?
      Falk
      Am 14.08.2007 um 21:55 schrieb fp:
      >
      > how to do ?
      > it's ok when up but i can't do it when down.
      > i mean:
      > 1, 2, 3, 4, 1, 2, 3, 4, etc is ok
      > but i can't find how to do 1, 4, 3, 2, 1, etc...
      >
      > help please.
      >
      > #P window setfont "Sans Serif" 9.;
      > #P number 66 166 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P window linecount 1;
      > #P message 91 134 39 196617 set $1;
      > #P newex 69 115 32 196617 sel 0;
      > #P newex 69 95 34 196617 % 10;
      > #P newex 69 76 23 196617 abs;
      > #P number 69 59 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P connect 3 1 5 0;
      > #P connect 3 1 4 0;
      > #P fasten 4 0 0 0 96 154 131 154 131 54 74 54;
      > #P connect 0 0 1 0;
      > #P connect 1 0 2 0;
      > #P connect 2 0 3 0;
      > #P window clipboard copycount 6;
      >
      > --
      > ------------------------
      > - www.pan-etc.net -
      > ------------------------
    • Aug 14 2007 | 8:11 pm
      yes naturally.
      i'm on it.
      thx.
    • Aug 14 2007 | 8:22 pm
      yes but i have a %ld in the max window.
      ???
      with counter i can't find how to do too ?
      tired ?
      ...
      >
      > something like this?
      >
      > Falk
      >
      >
    • Aug 14 2007 | 8:26 pm
      in fact i have this %od in the max window with the help file of zl rot too.
      what's happen ?
    • Aug 14 2007 | 8:30 pm
      ok, incremental update of zl fixed it.
      thx for your quick help.
    • Aug 14 2007 | 9:58 pm
    • Aug 15 2007 | 4:44 pm
      fp schrieb:
      > how to do ? it's ok when up but i can't do it when down. i mean: 1,
      > 2, 3, 4, 1, 2, 3, 4, etc is ok but i can't find how to do 1, 4, 3, 2,
      > 1, etc...
      I'd do it with my mod abstraction, an de-encapsulated version below...
      (I don't know why you skipped the zero in your patch, seems unecessary...)
      --
      Stefan Tiedje------------x-------
      --_____-----------|--------------
      --(_|_ ----|-----|-----()-------
      -- _|_)----|-----()--------------
      ----------()--------www.ccmix.com
    • Aug 16 2007 | 7:43 am
    • Aug 16 2007 | 12:39 pm
      how bout this
    • Aug 16 2007 | 1:18 pm
      Le 16 août 07 à 09:43, Stefan Tiedje a écrit :
      > Then you should add 1 to the result and have the range by one
      > smaller...
      >
      > Stefan
      yep, but in that case i continue to have 0 on the UI number box
      Le 16 août 07 à 14:39, Derek Franz a écrit :
      > how bout this
      >
      >
      >
      nice too. thx.
      :-)
      but how to change maximum value ?
      f./
    • Aug 16 2007 | 4:04 pm
      On 8/16/07, Derek Franz wrote:
      >
      > how bout this
      >
      >
      >
      This one doesn't work if it's triggered fast :
    • Aug 16 2007 | 5:15 pm
      At 9:43 AM +0200 8/16/07, Stefan Tiedje wrote:
      >Then you should add 1 to the result and have the range by one smaller...
      Here's an edit of your patch, with the visible number pretty much de-coupled from the changing number. I stack two number boxes, the top most set to ignore click. This way the bottom number gets the click and changes, driving your modulo stuff, but the range of the visible top number can be set to anything. It could be a menu or some other display object, as long as it was set to ignore clicks.
      -C
      --
      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
    • Aug 16 2007 | 6:51 pm
      >
      franz,
      hmmm...
      i don't understand at all what you mean.
      sorry.
      --
      chris,
      yes it's a work around.
      why not.
      thx.
    • Aug 16 2007 | 7:42 pm
      Here is an abstraction (called "rollo") I built a little while ago as an experiment to create a number box whose places don't jump. I ended up with an lcd solution to that problem, but you might find this patch useful. It is also designed to increment/decrement a neighboring number box. Included below also is an example patch:
      Here is a small example patch. It looks for the above abstraction to be called "rollo".
    • Aug 17 2007 | 7:50 am
      elt schrieb:
      > yep, but in that case i continue to have 0 on the UI number box
      not me...
      my punishment for you is to post the patch, next time try harder... ;-)
      --
      Stefan Tiedje------------x-------
      --_____-----------|--------------
      --(_|_ ----|-----|-----()-------
      -- _|_)----|-----()--------------
      ----------()--------www.ccmix.com
    • Aug 17 2007 | 12:52 pm
      ach, stefan... yes...
      i tried like that but didn't think to minus 1...
      merde.
      i go too quickly.
      thx all.
      f./