PageRenderTime 124ms CodeModel.GetById 117ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/mctl/mctl-exclusive.pd

http://github.com/jpburstrom/neu
Unknown | 82 lines | 82 code | 0 blank | 0 comment | 0 complexity | 7b99905cf98e0b774c14efbd17ffcb65 MD5 | raw file
 1#N canvas 0 19 817 714 10;
 2#X text 482 178 Johannes Burstrom 2009;
 3#X obj 372 417 outlet;
 4#X text 431 418 Outlet is sending out all nonzero cc v/cc pairs before
 5other processing;
 6#X obj 434 507 t b b;
 7#X obj 435 531 delay 1000;
 8#X obj 464 552 0;
 9#X obj 436 551 1;
10#X text 435 453 This can be used to set a temporary off-toggling of
11the exclusivity \, so several cc's in a group can be selected within
12a certain amount of time:;
13#X text 248 108 Make a group of midi controllers (toggles) mutually
14exclusive. The group is set by initial argument \, and the behaviour
15can be turned off and on by toggling the inlet.;
16#X text 355 222 Controllers are expressed as floats or ranges (x-y).
17See list-range help file.;
18#X obj 523 529 list 0 (this could be a mctl-exclusive object);
19#X obj 85 143 pack 0 0;
20#X obj 85 357 list append;
21#X obj 85 411 unpack 0 0 0;
22#X obj 86 444 sel;
23#X obj 103 507 pack 0 0;
24#X msg 103 530 \$2 \$1;
25#X obj 58 89 sel 0;
26#X obj 85 233 t a a;
27#X obj 114 274 sel;
28#X obj 85 311 list;
29#X obj 58 50 spigot 1;
30#X obj 177 12 inlet;
31#X obj 85 168 t b a a;
32#X obj 57 10 mctl-prectlin \$1;
33#X obj 85 188 list;
34#X obj 220 185 dollarg;
35#X obj 220 206 list split 1;
36#X obj 220 157 loadbang;
37#X obj 199 543 outlet;
38#X msg 126 451 127 \$1;
39#X obj 128 477 -;
40#X text 390 300 FIXME: A way to remember current state \, so we don't
41have to send out zeroes to the whole group;
42#X obj 103 566 mctl-ctlout \$1;
43#X obj 86 336 drip;
44#X obj 254 227 mctl-intervals;
45#X obj 114 254 drip;
46#X connect 3 0 4 0;
47#X connect 3 1 5 0;
48#X connect 4 0 6 0;
49#X connect 5 0 10 0;
50#X connect 6 0 10 0;
51#X connect 10 0 3 0;
52#X connect 11 0 23 0;
53#X connect 12 0 13 0;
54#X connect 13 0 14 0;
55#X connect 13 1 30 0;
56#X connect 13 2 14 1;
57#X connect 14 1 15 0;
58#X connect 15 0 16 0;
59#X connect 16 0 29 0;
60#X connect 16 0 33 0;
61#X connect 17 1 11 0;
62#X connect 18 0 20 1;
63#X connect 18 1 36 0;
64#X connect 19 0 20 0;
65#X connect 20 0 34 0;
66#X connect 21 0 17 0;
67#X connect 22 0 21 1;
68#X connect 23 0 25 0;
69#X connect 23 1 12 1;
70#X connect 23 2 1 0;
71#X connect 24 0 21 0;
72#X connect 24 1 11 1;
73#X connect 24 1 19 1;
74#X connect 25 0 18 0;
75#X connect 26 0 27 0;
76#X connect 27 1 35 0;
77#X connect 28 0 26 0;
78#X connect 30 0 31 0;
79#X connect 31 0 15 1;
80#X connect 34 0 12 0;
81#X connect 35 0 25 1;
82#X connect 36 0 19 0;