aboutsummaryrefslogtreecommitdiff
path: root/doc/mjLib/pin~.pd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/mjLib/pin~.pd')
-rwxr-xr-xdoc/mjLib/pin~.pd41
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/mjLib/pin~.pd b/doc/mjLib/pin~.pd
new file mode 100755
index 0000000..83ebc96
--- /dev/null
+++ b/doc/mjLib/pin~.pd
@@ -0,0 +1,41 @@
+#N canvas 571 384 526 605 12;
+#X obj 206 485 dac~;
+#X obj 155 395 osc~;
+#X msg 155 282 69;
+#X obj 155 327 mtof;
+#X floatatom 155 304 0 0 0;
+#X floatatom 155 349 0 0 0;
+#X obj 155 371 sig~;
+#X floatatom 234 314 5 0 1;
+#X floatatom 308 359 5 0 0;
+#X text 19 13 pin~;
+#X text 20 55 the pin~ object can be considered to be similar to the
+pin in a bagatelle game. The ball upon hitting it has a random probability
+of falling to one side or the other. The pin~ object takes a single
+signal input and outputs it to the left or right output at random based
+on the probability set (right most input). The interval at which the
+outlet is choosen can be set by the right most input. Setting this
+to 0 or less means a different output is choosen for every call of
+the dsp routine. A higher value means that the output is choosen every
+so many milliseconds.;
+#X obj 154 255 loadbang;
+#X text 19 314 test signal;
+#X text 19 327 generator---->;
+#X text 222 289 probability to choose left;
+#X text 300 307 (between 0 and 1);
+#X text 321 338 choice interval;
+#X obj 177 437 pin~ 0.5 100;
+#X text 25 523 note that no panning or envelopes are applied and therefore
+low choice intervals will add "switching" noise to the output.;
+#X text 19 30 by mark williamson (mark@junklight.com);
+#X connect 1 0 17 0;
+#X connect 2 0 4 0;
+#X connect 3 0 5 0;
+#X connect 4 0 3 0;
+#X connect 5 0 6 0;
+#X connect 6 0 1 0;
+#X connect 7 0 17 1;
+#X connect 8 0 17 2;
+#X connect 11 0 2 0;
+#X connect 17 0 0 0;
+#X connect 17 1 0 1;