#N canvas 461 122 559 581 10;
#X obj 4 307 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#X obj 5 465 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 5 500 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#X obj 80 316 cnv 17 3 98 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 80 420 cnv 17 3 17 empty empty 1 5 9 0 16 -228856 -162280 0
;
#X floatatom 161 251 5 0 0 0 - - -;
#X obj 201 193 metro 300;
#X obj 201 168 tgl 15 0 empty empty empty 0 -6 0 8 -228856 -1 -1 0
1;
#X obj 80 474 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 80 442 cnv 17 3 17 empty empty 2 5 9 0 16 -228856 -162280 0
;
#X obj 201 250 hradio 15 1 0 13 empty empty empty 0 -8 0 10 -228856
-1 -1 10;
#X text 171 316 -;
#X text 140 316 bang;
#X text 171 337 -;
#X text 133 337 float;
#X text 171 359 -;
#X text 139 359 list;
#X text 171 421 -;
#X text 133 421 float;
#X text 171 443 -;
#X text 133 443 float;
#X text 133 477 float;
#X text 115 507 1) float;
#X text 115 525 2) float;
#X obj 2 5 cnv 15 553 42 empty empty empty 20 12 0 14 -233017 -66577
0;
#N canvas 0 22 450 278 (subpatch) 0;
#X coords 0 1 100 -1 554 42 1 0 0;
#X restore 2 4 graph;
#X obj 305 5 cnv 15 250 40 empty empty empty 12 13 0 18 -128992 -233080
0;
#N canvas 382 141 749 319 (subpatch) 0;
#X coords 0 -1 1 1 252 42 2 100 100;
#X restore 304 4 pd;
#X text 171 477 - random number output as result of the drunken walk
;
#X text 93 378 seed <float> -;
#X text 99 399 set <float> -;
#X text 189 378 seeds the internal random number generator, f 50;
#X text 189 399 sets the current value (without output), f 51;
#X text 186 421 sets upper bound, f 58;
#X text 186 443 sets stepsize, f 58;
#X obj 201 274 bng 15 250 50 0 empty empty empty 17 7 0 10 -228856
-1 -1;
#X obj 172 192 bng 15 250 50 0 empty empty empty 17 7 0 10 -228856
-1 -1;
#X text 186 316 triggers a random output, f 58;
#X text 171 525 - sets maximum stepsize (default 2);
#X text 171 507 - sets maximum value (default 128);
#X text 71 91 [drunk] generates random numbers within a given step
range from the current number (generating a "drunk walk"). The random
number is from 0 to a given maximum and differs from the previous number
by a random value less than the given step size.;
#X floatatom 271 197 5 0 10 0 - - -;
#X floatatom 342 197 5 0 5 0 - - -;
#X text 263 169 maximum;
#X text 266 180 output;
#X text 341 170 step;
#X text 341 181 size;
#X obj 1 549 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289
0;
#N canvas 401 94 754 394 examples 0;
#X obj 112 49 tgl 18 0 empty empty empty 17 7 0 10 -228856 -1 -1 0
1;
#X obj 112 84 metro 250;
#X obj 112 205 makenote 127 250;
#X floatatom 368 140 5 0 0 0 - - -;
#X msg 344 107 set \$1;
#X floatatom 344 88 5 0 0 0 - - -;
#X msg 404 199 10 20 4;
#X obj 344 239 cyclone/drunk 10;
#X floatatom 344 273 5 0 0 0 - - -;
#X obj 344 305 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 112 118 cyclone/drunk 30 6;
#X obj 112 149 + 40;
#X obj 112 175 change;
#N canvas 808 403 328 303 osc 0;
#X obj 199 47 inlet;
#X obj 57 48 inlet;
#X obj 57 78 mtof;
#X obj 57 110 phasor~;
#X obj 199 82 / 127;
#X obj 184 182 *~;
#X obj 184 213 outlet~;
#X obj 57 142 cyclone/triangle~ 0.7;
#X obj 199 152 line~;
#X msg 199 120 \$1 50;
#X connect 0 0 4 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 7 0;
#X connect 4 0 9 0;
#X connect 5 0 6 0;
#X connect 7 0 5 0;
#X connect 8 0 5 1;
#X connect 9 0 8 0;
#X restore 112 234 pd osc;
#X text 133 49 random melody generator;
#X floatatom 70 206 5 0 0 0 - - -;
#X msg 387 168 5 6;
#X obj 306 172 bng 18 250 50 0 empty empty empty 17 7 0 10 -228856
-1 -1;
#X obj 70 228 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X text 387 88 sets a current value but doesn't output it;
#X text 408 141 sets a current value and outputs it;
#X text 418 168 sets current and maximum values;
#X text 456 196 sets current \, maximum and step size values;
#X obj 96 287 ./out~;
#X connect 0 0 1 0;
#X connect 1 0 10 0;
#X connect 2 0 13 0;
#X connect 2 1 13 1;
#X connect 3 0 7 0;
#X connect 4 0 7 0;
#X connect 5 0 4 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 12 0 15 0;
#X connect 13 0 23 0;
#X connect 13 0 23 1;
#X connect 15 0 18 0;
#X connect 16 0 7 0;
#X connect 17 0 7 0;
#X restore 468 265 pd examples;
#X text 186 337 sets new current value and outputs it, f 58;
#X text 186 359 of floats sets <value \, maximum \, step size> in this
order;
#X obj 201 224 cyclone/drunk 12 3, f 24;
#X obj 20 58 cyclone/comment 0 14 DejaVu\ Sans\ Mono empty 0 0 0 0
0 255 255 255 0 0 Random drunk walk;
#X obj 16 5 cyclone/comment 0 33 DejaVu\ Sans\ Mono empty 0 0 0 0 0
255 255 255 0 0 drunk;
#X obj 322 29 cyclone/comment 0 13 DejaVu\ Sans\ Mono empty 0 224 228
220 0 255 255 255 0 0 Objects cloned from Max/MSP;
#X obj 363 5 cyclone/comment 0 24 DejaVu\ Sans\ Mono empty 0 224 228
220 0 255 255 255 0 0 cyclone;
#X connect 6 0 51 0;
#X connect 7 0 6 0;
#X connect 10 0 35 0;
#X connect 36 0 51 0;
#X connect 41 0 51 1;
#X connect 42 0 51 2;
#X connect 51 0 5 0;
#X connect 51 0 10 0;
