how to "reset" urn ?

Apr 14, 2008 at 4:45pm

how to "reset" urn ?

Hi

When urn has randomly chosen my 10 values, how do i reset it to start over again?

Thank you ! !

#36915
Apr 14, 2008 at 5:03pm

send it the “clear” message

#P window setfont “Sans Serif” 9.;
#P number 34 102 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 84 74 60 196617 clear , bang;
#P button 34 28 15 0;
#P newex 34 74 40 196617 urn 10;
#P connect 0 0 3 0;
#P connect 2 0 0 0;
#P connect 0 1 2 0;
#P connect 1 0 0 0;
#P window clipboard copycount 4;

~s

On Mon, Apr 14, 2008 at 6:45 PM, petterdass wrote:
>
> Hi
>
> When urn has randomly chosen my 10 values, how do i reset it to start over again?
>
> Thank you ! !

#127075
Apr 14, 2008 at 5:06pm

moi bien :)

#127076
Apr 14, 2008 at 5:23pm

On Apr 14, 2008, at 9:45 AM, petterdass wrote:
> When urn has randomly chosen my 10 values, how do i reset it to
> start over again?

You send it the clear message. You can use the right outlet to bang
this message into the inlet. Here’s an abstraction that I call
UrnCounter that uses urn sort of as a counter, counting through a
fixed random range of numbers.

max v2;
#N vpatcher 314 44 787 484;
#P origin 0 -2;
#P window setfont “Sans Serif” 9.;
#P hidden comment 0 412 55 196617 lower left;
#P window linecount 2;
#P comment 2 34 442 196617 Steps through a random pattern between
RangeLow and RangeHigh. A bang in NewPattern creates a new random
pattern (and reports the seed). Seeds can be passed in through
NewPattern.;
#P window linecount 1;
#P newex 318 195 40 196617 t b b i;
#P newex 372 243 27 196617 – 0;
#P newex 318 169 27 196617 – 1;
#P newex 69 366 27 196617 + 1;
#N comlet Seed;
#P outlet 274 397 15 0;
#P comment 289 397 34 196617 Seed;
#P newex 184 104 72 196617 route bang int;
#P comment 313 83 57 196617 Range Low;
#N comlet Range Low;
#P inlet 296 83 15 0;
#P comment 389 83 64 196617 Range High;
#P comment 145 83 35 196617 Reset;
#P comment 85 83 29 196617 Trig;
#P newex 38 182 30 196617 t b b;
#P number 184 156 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 184 136 70 196617 random 9999;
#P newex 184 200 85 196617 prepend set seed;
#P newex 130 216 30 196617 t b b;
#P message 184 242 69 196617 seed 5343;
#P newex 69 324 40 196617 urn 52;
#B color 5;
#P message 130 242 37 196617 clear;
#P button 69 242 15 0;
#P comment 200 83 64 196617 NewPattern;
#N comlet Reset;
#P inlet 130 83 15 0;
#N comlet NewPattern;
#P inlet 184 83 15 0;
#N comlet Range High;
#P inlet 372 83 15 0;
#N comlet Trig;
#P inlet 69 83 15 0;
#N comlet Index;
#P outlet 69 397 15 0;
#P comment 84 397 34 196617 Index;
#P window setfont “Sans Serif” 18.;
#P comment 2 6 108 196626 UrnCounter;
#P window setfont “Sans Serif” 9.;
#P comment 110 15 100 196617 Deck Shuffler;
#P fasten 11 1 17 0 104 349 28 349 28 176 43 176;
#P connect 17 0 9 0;
#P connect 4 0 9 0;
#P connect 10 0 11 0;
#P connect 12 0 11 0;
#P connect 9 0 11 0;
#P connect 11 0 26 0;
#P connect 26 0 3 0;
#P fasten 21 0 26 1 301 360 91 360;
#P fasten 28 0 11 1 377 318 104 318;
#P connect 17 1 13 0;
#P connect 7 0 13 0;
#P connect 13 0 10 0;
#P connect 6 0 23 0;
#P connect 23 0 15 0;
#P connect 15 0 16 0;
#P connect 16 0 14 0;
#P connect 23 1 14 0;
#P lcolor 7;
#P connect 29 0 12 0;
#P connect 13 1 12 0;
#P connect 14 0 12 0;
#P connect 23 1 25 0;
#P lcolor 7;
#P fasten 16 0 25 0 189 181 279 181;
#P connect 21 0 27 0;
#P connect 27 0 29 0;
#P connect 5 0 28 0;
#P connect 29 1 28 0;
#P connect 29 2 28 1;
#P pop;

Chris Muir
cbm@well.com

http://www.xfade.com

#127077

You must be logged in to reply to this topic.