diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-04-07 14:32:29 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-04-07 14:32:29 +0000 |
commit | 1baf1d957e195290cfd59089767ca63a547a9917 (patch) | |
tree | 38a48f9bffeb97d2f69934447be073a1728bf779 /doc/mjLib/prob.pd |
This commit was generated by cvs2svn to compensate for changes in r1560,svn2git-root
which included commits to RCS files with non-trunk default branches.
svn path=/trunk/externals/mjlib/; revision=1561
Diffstat (limited to 'doc/mjLib/prob.pd')
-rwxr-xr-x | doc/mjLib/prob.pd | 34 |
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;
|