newbie question


    Dec 14 2006 | 11:33 am
    Hi! I'm trying to make a patch to connect to a button( in a boz outside the
    cpu), and i want that when i push the button one time, it triggers the first
    of four loops, and when i push it two times it triggers the second loop, and
    so on, i've tryed with counter and select, but i can't manage to play
    directly the third loop without triggering the othe two...can anyone give me
    a hint?
    Thanks

    • Dec 14 2006 | 11:55 am
      Quote: afonsobarros wrote on Thu, 14 December 2006 12:33
      ----------------------------------------------------
      > Hi! I'm trying to make a patch to connect to a button( in a boz outside the
      > cpu), and i want that when i push the button one time, it triggers the first
      > of four loops, and when i push it two times it triggers the second loop, and
      > so on, i've tryed with counter and select, but i can't manage to play
      > directly the third loop without triggering the othe two...can anyone give me
      > a hint?
      > Thanks
      Hi, this should get you started. It contains loadmess objects so you have to save and open the patch to see it working.
      Cheers,
      Mattijs
    • Dec 14 2006 | 12:14 pm
      Try this
      riccardo
      max v2;
      Il giorno 14/dic/06, alle ore 12:33, Afonso Barros ha scritto:
      > Hi! I'm trying to make a patch to connect to a button( in a boz
      > outside the cpu), and i want that when i push the button one time,
      > it triggers the first of four loops, and when i push it two times
      > it triggers the second loop, and so on, i've tryed with counter and
      > select, but i can't manage to play directly the third loop without
      > triggering the othe two...can anyone give me a hint?
      > Thanks
    • Dec 14 2006 | 12:38 pm
      Sorry, in my first reply I completely misanderstood your request, so
      my help is a really dummy one.
      Hope to send a better one
      ciao,
      riccardo
      > Da: riccardo dapelo
      > Data: 14 dicembre 2006 13:14:37 GMT+01:00
      > Oggetto: Re: [maxmsp] newbie question
      >
      > Try this
      >
      > riccardo
      >
      > max v2;
      > #N vpatcher 14 59 614 459;
      > #P button 181 256 15 0;
      > #P button 167 256 15 0;
      > #P button 153 256 15 0;
      > #P button 139 256 15 0;
      > #P window setfont "Sans Serif" 9.;
      > #P newex 139 209 66 196617 sel 0 1 2 3;
      > #P newex 139 169 27 196617 % 4;
      > #P button 139 103 15 0;
      > #N counter;
      > #X flags 0 0;
      > #P newobj 139 134 66 196617 counter;
      > #P comment 169 106 100 196617 your button;
      > #P comment 215 258 100 196617 yours loops;
      > #P connect 3 0 2 0;
      > #P connect 2 0 4 0;
      > #P connect 4 0 5 0;
      > #P connect 5 0 6 0;
      > #P connect 5 1 7 0;
      > #P connect 5 2 8 0;
      > #P connect 5 3 9 0;
      > #P pop;
      >
      >
      >
      > Il giorno 14/dic/06, alle ore 12:33, Afonso Barros ha scritto:
      >
      >> Hi! I'm trying to make a patch to connect to a button( in a boz
      >> outside the cpu), and i want that when i push the button one time,
      >> it triggers the first of four loops, and when i push it two times
      >> it triggers the second loop, and so on, i've tryed with counter
      >> and select, but i can't manage to play directly the third loop
      >> without triggering the othe two...can anyone give me a hint?
      >> Thanks
      >
    • Dec 14 2006 | 2:56 pm
    • Dec 14 2006 | 7:32 pm
      This has the disadvantage of waiting for a period (one second in the
      patch below) before emitting a number, but it should reduce false
      triggering.
      --
      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
    • Dec 15 2006 | 10:55 am
      thanks Mattijs, i found your patch very effective for what i was looking
      for, once again, thanks, and thanks all the valid answers
      2006/12/14, Mattijs Kneppers :
      >
      >
      > Quote: afonsobarros wrote on Thu, 14 December 2006 12:33
      > ----------------------------------------------------
      > > Hi! I'm trying to make a patch to connect to a button( in a boz outside
      > the
      > > cpu), and i want that when i push the button one time, it triggers the
      > first
      > > of four loops, and when i push it two times it triggers the second loop,
      > and
      > > so on, i've tryed with counter and select, but i can't manage to play
      > > directly the third loop without triggering the othe two...can anyone
      > give me
      > > a hint?
      > > Thanks
      >
      > Hi, this should get you started. It contains loadmess objects so you have
      > to save and open the patch to see it working.
      >
      > Cheers,
      > Mattijs
      >
      > #P toggle 144 60 15 0;
      > #P button 67 41 15 0;
      > #P window setfont "Sans Serif" 9.;
      > #P window linecount 1;
      > #P comment 85 41 54 196617 count this;
      > #P newex 67 59 40 196617 t b b 1;
      > #P newex 38 249 29 196617 t i 0;
      > #P number 38 269 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P newex 38 229 27 196617 i;
      > #P newex 38 187 31 196617 t b 0;
      > #P newex 38 167 47 196617 gate 1 1;
      > #P hidden newex 222 40 72 196617 loadmess 300;
      > #N counter;
      > #X flags 0 0;
      > #P newobj 67 208 66 196617 counter;
      > #P newex 82 145 32 196617 sel 1;
      > #P newex 222 79 30 196617 - 10;
      > #P newex 82 125 36 196617 > 290;
      > #P flonum 222 60 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P hidden newex 144 40 60 196617 loadmess 1;
      > #P newex 160 60 58 196617 metro 300;
      > #P newex 82 105 35 196617 timer;
      > #P newex 82 85 20 196617 t b;
      > #P comment 260 60 57 196617 click speed;
      > #P connect 5 0 3 1;
      > #P connect 5 0 7 0;
      > #P connect 19 0 3 0;
      > #P connect 3 0 1 0;
      > #P hidden connect 10 0 5 0;
      > #P connect 2 0 6 0;
      > #P connect 6 0 8 0;
      > #P fasten 7 0 6 1 227 123 113 123;
      > #P connect 12 1 11 0;
      > #P connect 8 0 11 1;
      > #P connect 11 0 12 0;
      > #P connect 9 0 13 1;
      > #P connect 12 0 13 0;
      > #P connect 13 0 15 0;
      > #P connect 15 0 14 0;
      > #P connect 15 1 9 3;
      > #P connect 18 0 16 0;
      > #P fasten 16 2 11 0 102 81 43 81;
      > #P connect 16 1 1 0;
      > #P connect 16 0 9 0;
      > #P hidden connect 4 0 19 0;
      > #P connect 1 0 2 1;
      > #P connect 1 0 2 0;
      > #P window clipboard copycount 20;
      >
      > --
      > SmadSteck - http://www.smadsteck.nl
      > Interactive audiovisual sampling soft- and hardware
      >
      >