aboutsummaryrefslogtreecommitdiff
path: root/prob-help.pd
blob: fa80877fee218c56d280b51970808c0a6d498fb1 (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
35
36
37
38
39
40
41
42
43
44
#N canvas 1 53 473 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;
#N canvas 465 191 494 344 META 0;
#X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2;
#X text 12 135 AUTHOR Mark Williamson <mark@junklight.com>;
#X text 12 45 DESCRIPTION designed to generate a random event with
a given probability at a given interval;
#X text 12 75 INLET_0 bang start stop;
#X text 12 95 OUTLET_0 bang;
#X text 12 115 OUTLET_1;
#X text 12 5 KEYWORDS control random needs_work (OUTLET_1?);
#X restore 402 477 pd META;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 14 0 0 0;