Random Matrix...


    Jul 27 2006 | 7:02 am
    I'm using a matrix object as a drum sequencer and I would like to include a randomization function so that whenever I trigger a bang, my 16 * 4 matrix fills up randomly...
    How can I best achieve this?

    • Jul 27 2006 | 9:09 am
      >I'm using a matrix object as a drum sequencer and I would like to
      >include a randomization function so that whenever I trigger a bang,
      >my 16 * 4 matrix fills up randomly...
      >
      >How can I best achieve this?
      >
      #P window setfont "Sans Serif" 9.;
      #P window linecount 1;
      #P message 30 41 14 196617 2;
      #P message 83 25 14 196617 1;
      #P newex 102 68 154 196617 jit.spill @plane 0 @listlength 64;
      #P button 107 23 15 0;
      #P user jit.pwindow 15 173 82 62 0 1 0 0 1 0;
      #P newex 15 125 77 196617 jit.fill drums 0;
      #P newex 15 148 142 196617 jit.matrix drums 1 char 16 4;
      #P number 18 63 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      #P newex 108 39 94 196617 jit.noise 1 char 64;
      #P newex 13 98 104 196617 mxj list.Permutation;
      #P connect 7 0 0 1;
      #P connect 1 0 7 0;
      #P connect 0 0 4 0;
      #P connect 2 0 0 0;
      #P connect 6 0 1 0;
      #P connect 3 0 5 0;
      #P connect 4 0 3 0;
      #P window clipboard copycount 10;
      like that?
    • Jul 27 2006 | 10:22 am
      >>I'm using a matrix object as a drum sequencer and I would like to
      >>include a randomization function so that whenever I trigger a bang,
      >>my 16 * 4 matrix fills up randomly...
      >>
      >>How can I best achieve this?
      >>
      >
      >like that?
      (it make {2*3*4...*63*64} possibility?(64!)
      can't calculate in max...
      hand made factorielle?
      or use mathematica or old hp48
    • Jul 27 2006 | 2:05 pm
      Quote: pascal.baes wrote on Thu, 27 July 2006 12:22
      ----------------------------------------------------
      > >>I'm using a matrix object as a drum sequencer and I would like to
      > >>include a randomization function so that whenever I trigger a bang,
      > >>my 16 * 4 matrix fills up randomly...
      > >>
      > >>How can I best achieve this?
      (snip)
      > >like that?
      >
      > (it make {2*3*4...*63*64} possibility?(64!)
      > can't calculate in max...
      > hand made factorielle?
      > or use mathematica or old hp48
      Pascal, what do you mean? I find your posts very difficult to read.
      Jack, this is the simplest way I know:
    • Jul 28 2006 | 11:13 pm
      pascal baes wrote:
      >> I'm using a matrix object as a drum sequencer and I would like to
      >> include a randomization function so that whenever I trigger a bang, my
      >> 16 * 4 matrix fills up randomly...
      >>
      >> How can I best achieve this?
      >>
      > like that?
      A matrix~ for a drum sequencer for sure has no connection to any jitter
      matrix. And its likely the poor guy has no jitter...
      A drum sequencer is one of these devices which make sound, even blind
      people can work with... (I know its hard to imagine)
      Random in Max is way less complicated than noise in jitter, because its
      one dimensional... ;-)
      I'd suggest this:
      Stefan
      --
      Stefan Tiedje------------x-------
      --_____-----------|--------------
      --(_|_ ----|-----|-----()-------
      -- _|_)----|-----()--------------
      ----------()--------www.ccmix.com
    • Jul 30 2006 | 4:09 pm
      Thanks!