[maxmsp] Re: Random between +/- 128.0??
e.g.r.
gusanomaxlist at googlemail.com
Tue Aug 14 03:54:27 MDT 2007
- Previous message: [maxmsp] Re: Random between +/- 128.0??
- Next message: [maxmsp] Re: Random between +/- 128.0??
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8/14/07, UCDMSRA <xlight63 at hotmail.com> wrote: > > > Quote: Chris Muir wrote on Sun, 05 August 2007 14:36 > ---------------------------------------------------- > > At 9:48 PM +0200 8/5/07, Peter Castine wrote: > > >I dunno, I always thought the price for Litter Power was pretty good. > > > > I wasn't ragging on the Litter Power price, just pointing out that there > was a standard-object-only solution to this particular problem. > > > > -C > > > > -- > > Chris Muir | "There are many futures and only one status quo. > > cbm at well.com | This is why conservatives mostly agree, > > http://www.xfade.com | and radicals always argue." - Brian Eno > > > ---------------------------------------------------- > > OK, maybe this is going to be more interesting......... > > What if I only want to random 7 different numbers and their scales of 12? > I mean, what I want is only random the following numbers: > > [36, 38, 40, 41, 42, 45, 47] and the numbers add/sub (+/-) by those > numbers, which is [36 +/- 12, 38 +/- 12, 40 +/- 12....], so there are > totally 21 different numbers I ONLY want to random. I know maybe I need to > use [iter] or [uzi] so that I can random 7 numbers at one time but I don't > know how to random numbers I only need > > Please give me some directions, it will be better if I can increase the > probabilities of the first set numbers [36, 38, 40, 41, 42, 45, 47]. For > example, the probabilities of [36, 38, 40, 41, 42, 45, 47] coming out is 2 > times more then others. > > thanks a lot, Hi. Maybe using the table random probablilities could help you : #P window setfont "Sans Serif" 9.; #P window linecount 1; #P message 166 109 32 9109513 size 4; #P newex 70 73 141 9109513 t b b b b clear; #P newex 70 50 45 9109513 loadbang; #P newex 275 120 27 9109513 t i b; #P button 275 62 15 0; #P newex 275 96 47 9109513 random 7; #N coll myNr 1; #P newobj 275 173 57 9109513 coll myNr 1; #P newex 236 302 26 9109513 print; #P newex 236 264 27 9109513 - 12; #P newex 198 264 27 9109513 + 12; #P newex 198 234 87 9109513 gate 3; #P message 134 109 26 9109513 3 50; #P message 102 109 26 9109513 2 25; #P message 70 109 26 9109513 1 25; #N vtable 4 25 70 235 237 970100 128; #P newobj 198 164 55 9109513 table; #P comment 25 134 100 9109513 probabilities (%); #P fasten 5 2 8 0 279 292 241 292; #P connect 7 0 8 0; #P fasten 6 0 8 0 203 292 241 292; #P connect 10 0 12 0; #P connect 11 0 10 0; #P connect 14 0 2 0; #P connect 14 1 3 0; #P connect 14 2 4 0; #P connect 14 3 15 0; #P connect 14 4 1 0; #P connect 15 0 1 0; #P connect 13 0 14 0; #P connect 9 0 5 1; #P connect 12 0 9 0; #P connect 12 1 1 0; #P connect 5 1 7 0; #P connect 5 0 6 0; #P connect 1 0 5 0; #P connect 4 0 1 0; #P connect 3 0 1 0; #P connect 2 0 1 0; #P window clipboard copycount 16; -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20070814/f12111b8/attachment.htm
- Previous message: [maxmsp] Re: Random between +/- 128.0??
- Next message: [maxmsp] Re: Random between +/- 128.0??
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
