blob: 85ea41cbe83364b5e6eff60f5c22ccd3f55ab705 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#N canvas 144 132 614 505 12;
#X obj 235 384 prob;
#X obj 235 448 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1
-1;
#X msg 134 317 start;
#X msg 192 304 stop;
#X floatatom 249 276 5 0 0 0 - - -;
#X floatatom 294 348 5 0 1 0 - - -;
#X text 221 254 time interval;
#X text 271 314 probability;
#X text 260 330 between 0 and 1;
#X text 25 15 prob;
#X text 25 36 by mark williamson;
#X text 23 56 (mark@junklight.com);
#X text 26 84 prob is designed to generate a random event with a given
probability at a given interval. Every clock tick (set by time) it
generates a random number and compares it against the probability to
see if an event should occur. If so a bang is output at the outlet.
;
#X text 25 174 The probability is set as a value between 0 and 1 Time
is measured in milliseconds. The messages start and stop - start and
stop events being generated. The prob object can also be started with
a bang.;
#X obj 103 350 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1
-1;
#X text 64 372 bang has the;
#X text 64 389 same effect;
#X text 64 405 as start;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 1;
#X connect 5 0 0 2;
#X connect 14 0 0 0;
|