building a data routing selector


    Nov 02 2008 | 2:49 pm
    whilst building another (wii remote-controlled) live looping patch for max/msp i have a question regarding the best construction for a data routing selector.
    my selector subpatch (see below) routes data to looper 1, 2, or 3, or 4 for all loopers at once. now when i use the wii up/down buttons to switch the numbers i want to have the selection jump to 1 when reaching a higher number than 4, or jump to 4 when reaching a higher number than 1.
    how could this be done best?
    my example patch below (4.6) doesn't do it, but at least it selects already:
    for the one inclined: thank you very much in advance!
    jrp

    • Nov 02 2008 | 3:58 pm
      I think this does what you want:
      Regards jan.
    • Nov 02 2008 | 4:13 pm
      (my 1st name's jan, too)
      thanx you very much! works! (i decided for the left variant as it instantiates correctly here to the loadmess you put in there.)
      thanx again!
      jrp