-
Notifications
You must be signed in to change notification settings - Fork 8
/
SQUARE.pd
111 lines (111 loc) · 2.93 KB
/
SQUARE.pd
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#N canvas 319 23 893 704 10;
#X floatatom 111 158 5 0 0 0 start - -;
#X floatatom 221 158 5 0 0 1 size - -;
#X obj 111 123 unpack;
#X msg 221 287 set \$1;
#X obj 115 456 +;
#X obj 111 218 t b f f;
#X msg 174 257 1;
#X obj 221 352 until;
#X obj 221 373 f;
#X obj 221 394 t f f;
#X obj 261 394 + 1;
#X obj 221 332 t f b;
#X msg 270 353 0;
#X msg 221 311 16;
#X obj 310 516 % 2;
#X obj 340 516 div 2;
#X obj 340 537 * 10;
#X obj 310 537 +;
#X obj 221 238 pow 2;
#X obj 221 218 t f f;
#X obj 340 479 t f f;
#X obj 111 43 inlet;
#X obj 221 415 t f f f;
#X obj 221 463 sel -1;
#X obj 221 259 t f f;
#X obj 304 438 - 1;
#X obj 115 518 list prepend;
#X obj 115 539 t l l;
#X obj 58 586 list store;
#X obj 222 43 inlet;
#X floatatom 222 64 5 0 0 0 - - -;
#X obj 115 477 pack 0 120;
#X obj 58 617 outlet;
#X text 53 641 list of pads+colors \;;
#X obj 111 93 t l b b;
#X obj 166 99 s \$0_reset;
#X obj 184 496 r \$0_reset;
#X obj 221 178 min 8;
#X obj 221 199 max 0;
#X obj 111 178 max 0;
#X obj 111 199 min 98;
#X text 292 32 INLETS (left-to-right) \; \; 1 list: starting point
(bottom left corner) + square size (nr of pads) \; 2 color (0-127)
\;;
#X obj 129 562 r \$0_reset;
#X text 345 328 generate a list of pads to light up \;;
#X text 464 422 Copyright 2019-2020 Focusrite Audio Engineering Limited.
;
#X text 495 544 http://www.apache.org/licenses/LICENSE-2.0;
#X text 465 452 Licensed under the Apache License \, Version 2 (the
"License") \; you may not use this file except in compliance with the
License.;
#X text 465 509 You may obtain a copy of the License at;
#X text 465 574 Unless required by applicable law or agreed to in writing
\, software distributed under the License is distributed on an "AS
IS" BASIS \, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND \, either
express or implied.;
#X text 465 630 See the License for the specific language governing
permissions and limitations under the License.;
#X connect 0 0 39 0;
#X connect 1 0 37 0;
#X connect 2 0 0 0;
#X connect 2 1 1 0;
#X connect 3 0 13 0;
#X connect 4 0 31 0;
#X connect 5 0 13 0;
#X connect 5 1 4 1;
#X connect 6 0 3 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 22 0;
#X connect 9 1 10 0;
#X connect 10 0 8 1;
#X connect 11 0 7 0;
#X connect 11 1 12 0;
#X connect 12 0 8 1;
#X connect 13 0 11 0;
#X connect 14 0 17 0;
#X connect 15 0 16 0;
#X connect 16 0 17 1;
#X connect 17 0 4 0;
#X connect 18 0 24 0;
#X connect 19 0 18 0;
#X connect 19 1 20 0;
#X connect 20 0 14 1;
#X connect 20 1 15 1;
#X connect 21 0 34 0;
#X connect 22 0 23 0;
#X connect 22 1 14 0;
#X connect 22 2 15 0;
#X connect 23 0 28 0;
#X connect 24 0 3 0;
#X connect 24 1 25 0;
#X connect 25 0 23 1;
#X connect 26 0 27 0;
#X connect 27 0 28 1;
#X connect 27 1 26 1;
#X connect 28 0 32 0;
#X connect 29 0 30 0;
#X connect 30 0 31 1;
#X connect 31 0 26 0;
#X connect 34 0 2 0;
#X connect 34 1 6 0;
#X connect 34 2 35 0;
#X connect 36 0 26 1;
#X connect 37 0 38 0;
#X connect 38 0 19 0;
#X connect 39 0 40 0;
#X connect 40 0 5 0;
#X connect 42 0 28 1;