-
Notifications
You must be signed in to change notification settings - Fork 8
/
COLORS.pd
135 lines (135 loc) · 3.64 KB
/
COLORS.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#N canvas 460 260 802 356 10;
#X floatatom 18 17 5 0 0 1 color_(0-127) #0_to_g_color #0_from_g_color
;
#X obj 18 37 cnv 15 81 81 empty empty empty 20 12 0 14 -1 -66577 0
;
#X obj 21 40 cnv 15 75 75 empty \$0_to_g_color_preview empty 20 12
0 14 -1 -66577 0;
#N canvas 0 23 701 656 CORE 0;
#X obj 79 21 loadbang;
#X msg 79 42 read ./colors.txt;
#X obj 296 57 min 127;
#X obj 296 78 max 0;
#X msg 296 139 set \$1;
#X obj 296 170 s \$0_to_g_color;
#X obj 296 99 t f f;
#X obj 409 192 unpack 0 0 0;
#X obj 443 213 / 63;
#X obj 478 213 / 63;
#X obj 409 213 / 63;
#X obj 409 234 * 255;
#X obj 409 255 int;
#X floatatom 409 276 5 0 0 0 - - -;
#X obj 446 234 * 255;
#X obj 446 255 int;
#X floatatom 446 276 5 0 0 0 - - -;
#X obj 486 234 * 255;
#X obj 486 255 int;
#X floatatom 486 276 5 0 0 0 - - -;
#X obj 409 171 text get \$0_COLORS;
#X obj 79 87 text define \$0_COLORS;
#X obj 420 598 s \$0_to_g_color_preview;
#X obj 486 378 t b f;
#X obj 420 436 +;
#X obj 420 461 t b f;
#X obj 420 492 +;
#X obj 343 355 * -65536;
#X obj 420 356 * -256;
#X obj 486 356 * -1;
#X obj 420 523 - 1;
#X msg 420 564 color \$1;
#X obj 409 296 t f f;
#X obj 446 296 t f f;
#X obj 486 296 t f f;
#X obj 125 505 outlet;
#X obj 175 505 outlet;
#X obj 225 505 outlet;
#X obj 275 505 outlet;
#X obj 420 544 t f f;
#X obj 296 34 inlet;
#X connect 0 0 1 0;
#X connect 1 0 21 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 4 0 5 0;
#X connect 6 0 4 0;
#X connect 6 1 20 0;
#X connect 7 0 10 0;
#X connect 7 1 8 0;
#X connect 7 2 9 0;
#X connect 8 0 14 0;
#X connect 9 0 17 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 32 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 33 0;
#X connect 17 0 18 0;
#X connect 18 0 19 0;
#X connect 19 0 34 0;
#X connect 20 0 7 0;
#X connect 23 0 24 0;
#X connect 23 1 24 1;
#X connect 24 0 25 0;
#X connect 25 0 26 0;
#X connect 25 1 26 1;
#X connect 26 0 30 0;
#X connect 27 0 26 0;
#X connect 28 0 24 0;
#X connect 29 0 23 0;
#X connect 30 0 39 0;
#X connect 31 0 22 0;
#X connect 32 0 27 0;
#X connect 32 1 35 0;
#X connect 33 0 28 0;
#X connect 33 1 36 0;
#X connect 34 0 29 0;
#X connect 34 1 37 0;
#X connect 39 0 31 0;
#X connect 39 1 38 0;
#X connect 40 0 2 0;
#X restore 165 117 pd CORE;
#X obj 165 170 outlet;
#X obj 215 170 outlet;
#X obj 265 170 outlet;
#X obj 229 37 inlet;
#X text 225 12 color nr (0-127);
#X obj 165 15 loadbang;
#X msg 165 36 0;
#X obj 315 170 outlet;
#X text 169 199 RGB values + Pd GUI color;
#X obj 422 21 r \$0_print_outlets;
#X obj 422 76 print -n;
#X msg 422 44 COLORS OUTLETS \, 1: R value \, 2: G value \, 3: B value
\, 4: Pd GUI color \;;
#X obj 238 82 s \$0_print_outlets;
#X obj 165 62 route float print_outlets;
#X obj 279 37 r \$0_from_g_color;
#X text 426 112 Copyright 2019-2020 Focusrite Audio Engineering Limited.
;
#X text 457 234 http://www.apache.org/licenses/LICENSE-2.0;
#X text 427 142 Licensed under the Apache License \, Version 2 (the
"License") \; you may not use this file except in compliance with the
License.;
#X text 427 199 You may obtain a copy of the License at;
#X text 427 264 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 427 320 See the License for the specific language governing
permissions and limitations under the License.;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X connect 3 2 6 0;
#X connect 3 3 11 0;
#X connect 7 0 17 0;
#X connect 9 0 10 0;
#X connect 10 0 17 0;
#X connect 13 0 15 0;
#X connect 15 0 14 0;
#X connect 17 0 3 0;
#X connect 17 1 16 0;
#X connect 18 0 17 0;
#X coords 0 -1 1 1 115 105 2 15 15;