Random Matrix…

Jul 27, 2006 at 7:02am

Random Matrix…

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?

#26941
Jul 27, 2006 at 9:09am

>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?

#81102
Jul 27, 2006 at 10:22am

>>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?

(it make {2*3*4…*63*64} possibility?(64!)
can’t calculate in max…
hand made factorielle?
or use mathematica or old hp48

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 490 106 14 196617 1;
#P number 380 105 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 332 138 15 0;
#P newex 353 137 47 196617 uzi 64 1;
#P comment 317 111 31 196617 N;
#P message 352 109 20 196617 64;
#P number 507 157 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 434 109 15 0;
#P newex 441 143 27 196617 i 1;
#P number 492 207 123 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 490 180 27 196617 * 1;
#P comment 389 211 100 196617 maxPermutationN;
#P connect 1 0 2 0;
#P connect 5 0 1 1;
#P fasten 2 0 3 1 497 234 573 234 573 127 463 127;
#P connect 4 0 3 0;
#P connect 11 0 3 1;
#P connect 8 2 5 0;
#P connect 8 0 4 0;
#P connect 10 0 8 1;
#P connect 9 0 8 0;
#P connect 6 0 8 1;
#P connect 3 0 1 0;
#P connect 8 1 11 0;
#P window clipboard copycount 12;

#81103
Jul 27, 2006 at 2:05pm

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:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 372 224 29 9109513 % 16;
#P newex 416 224 27 9109513 / 16;
#P newex 372 249 99 9109513 pack 0 0 0;
#N counter;
#X flags 0 0;
#P newobj 372 192 66 9109513 counter;
#P button 399 103 15 0;
#P newex 399 140 40 9109513 uzi 64;
#P user matrixctrl 372 282 258 67 MatrixDefaultCell.pct MatrixDefaultBkgnd.pct 258 67 16 16 16 4 16 16 1 1 48 2 5120 0;
#P number 477 202 35 9 0 100 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 460 224 27 9109513 < ;
#P newex 460 180 57 9109513 random 100;
#P window setfont “Sans Serif” 9.;
#P comment 514 203 100 196617 probability;
#P window setfont “Sans Serif” 9.;
#P comment 416 104 44 9109513 Populate;
#P fasten 6 0 8 0 404 172 377 172;
#P connect 6 0 2 0;
#P lcolor 2;
#P connect 8 0 11 0;
#P fasten 8 0 10 0 377 217 421 217;
#P connect 9 0 5 0;
#P connect 4 0 3 1;
#P connect 2 0 3 0;
#P connect 3 0 9 2;
#P fasten 10 0 9 1 421 240 421 240;
#P fasten 11 0 9 0 377 240 377 240;
#P connect 7 0 6 0;
#P connect 6 1 8 3;
#P window clipboard copycount 12;

#81104
Jul 28, 2006 at 11:13pm

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:

#P button 97 39 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 205 106 25 196617 – 1;
#P newex 97 64 119 196617 uzi 8;
#P newex 97 128 119 196617 pack i i i;
#P newex 97 150 50 196617 zl rev;
#P newex 97 106 51 196617 random 2;
#P newex 151 106 25 196617 – 1;
#P newex 97 85 64 196617 uzi 4;
#P user matrixctrl 97 174 130 66 MatrixDefaultCell.pct
MatrixDefaultBkgnd.pct 130 66 16 16 8 4 16 16 1 1 48 2 5120 0;
#P connect 6 0 1 0;
#P connect 6 2 7 0;
#P connect 8 0 6 0;
#P connect 4 0 0 0;
#P connect 5 0 4 0;
#P connect 7 0 5 2;
#P connect 2 0 5 1;
#P connect 3 0 5 0;
#P connect 1 0 3 0;
#P connect 1 2 2 0;
#P window clipboard copycount 9;

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#81105
Jul 30, 2006 at 4:09pm

Thanks!

#81106

You must be logged in to reply to this topic.