aboutsummaryrefslogtreecommitdiff
path: root/doc/mjLib/pin~.pd
blob: 83ebc96b7c981585f4838639fe76d73580d247a8 (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
#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;