aboutsummaryrefslogtreecommitdiff
path: root/doc/mjLib/prob.pd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/mjLib/prob.pd')
-rwxr-xr-xdoc/mjLib/prob.pd34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/mjLib/prob.pd b/doc/mjLib/prob.pd
new file mode 100755
index 0000000..27cd83c
--- /dev/null
+++ b/doc/mjLib/prob.pd
@@ -0,0 +1,34 @@
+#N canvas 692 257 515 496 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;
+#X floatatom 294 348 5 0 1;
+#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;