forked from macumbista/vectorsynthesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvs-poly-gui.pd
272 lines (272 loc) · 7.86 KB
/
vs-poly-gui.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
#N canvas 0 93 803 650 10;
#X obj 101 118 cnv 15 300 80 empty empty empty 20 12 0 14 -228856 -66577
0;
#X obj 108 552 outlet~ X;
#X obj 178 552 outlet~ Y;
#X obj 249 552 outlet~ B;
#X obj 246 160 nbx 5 14 0 360 0 0 \$2/phase \$2/phase phase 0 -8 0
10 -4034 -1 -1 0 256;
#X obj 197 389 / 360;
#X obj 108 160 nbx 5 14 -1e+37 1e+37 0 0 \$2/harmonic \$2/harmonic
harmonic 0 -8 0 10 -4034 -1 -1 1 256;
#X obj 114 432 sig~;
#X obj 180 160 nbx 5 14 -1e+37 1e+37 0 0 \$2/scale \$2/scale scale
0 -8 0 10 -4034 -1 -1 100 256;
#X obj 222 446 / 100;
#X obj 319 161 nbx 5 14 -1e+37 1e+37 0 0 \$2/brightness \$2/brightness
brightness 0 -8 0 10 -4034 -1 -1 100 256;
#X obj 266 399 / 100;
#X obj 377 432 kollabs/ds_reg \$1 \$2/frequency;
#X obj 377 492 kollabs/ds_reg \$1 \$2/harmonic;
#X obj 377 512 kollabs/ds_reg \$1 \$2/scale;
#X obj 377 532 kollabs/ds_reg \$1 \$2/phase;
#X obj 377 552 kollabs/ds_reg \$1 \$2/brightness;
#X obj 190 17 inlet~ phase;
#X obj 102 17 inlet~ phasor;
#X obj 108 130 nbx 5 14 -1e+37 1e+37 0 0 \$2/frequency \$2/frequency
frequency 0 -8 0 10 -257985 -1 -1 50 256;
#X obj 168 130 nbx 5 14 -1e+37 1e+37 0 0 \$2/frequency-100 \$2/frequency-100
freq/100 0 -8 0 10 -257985 -1 -1 0 256;
#X obj 231 130 bng 15 250 50 0 empty empty Reset -6 -8 0 10 -258113
-1 -1;
#X obj 99 342 phasor~;
#X obj 149 247 / 100;
#X msg 185 301 0, f 4;
#N canvas 0 23 634 533 selector 0;
#X obj 139 36 inlet~;
#X obj 210 36 inlet~;
#X obj 380 36 inlet;
#X msg 142 112 0;
#X msg 154 135 1;
#X msg 214 112 0;
#X msg 225 135 1;
#X obj 139 239 *~;
#X obj 210 239 *~;
#X obj 163 267 outlet~;
#X obj 152 81 select 0 1 2;
#X msg 280 112 0;
#X msg 292 135 1;
#X obj 277 239 *~;
#X obj 277 36 r~ \$1-master;
#X connect 0 0 7 0;
#X connect 1 0 8 0;
#X connect 2 0 10 0;
#X connect 3 0 8 1;
#X connect 3 0 13 1;
#X connect 4 0 7 1;
#X connect 5 0 7 1;
#X connect 5 0 13 1;
#X connect 6 0 8 1;
#X connect 7 0 9 0;
#X connect 8 0 9 0;
#X connect 10 0 3 0;
#X connect 10 0 4 0;
#X connect 10 1 5 0;
#X connect 10 1 6 0;
#X connect 10 2 11 0;
#X connect 10 2 12 0;
#X connect 11 0 8 1;
#X connect 11 0 7 1;
#X connect 12 0 13 1;
#X connect 13 0 9 0;
#X connect 14 0 13 0;
#X restore 99 372 pd selector;
#X obj 323 52 r \$1-reset-phase;
#X obj 318 130 hradio 15 1 0 3 \$2/source \$2/source Int.Ext.Master
-12 -8 0 10 -257985 -1 -1 0;
#X obj 273 17 inlet~ scale;
#X obj 421 93 savestate;
#X obj 472 137 f;
#X obj 487 157 f;
#X obj 503 177 f;
#X obj 523 198 f;
#X obj 543 218 f;
#X obj 563 238 f;
#X obj 583 258 f;
#X obj 377 452 kollabs/ds_reg \$1 \$2/frequency-100;
#X obj 377 472 kollabs/ds_reg \$1 \$2/source;
#X text 602 503 Derek Holzer;
#X text 602 552 [email protected];
#X obj 353 17 inlet~ brightness;
#X obj 99 461 *~;
#X obj 110 180 nbx 3 14 1 64 0 0 \$2/points \$2/points points 40 8
0 10 -4034 -1 -1 3 256;
#X obj 603 278 f;
#X obj 623 298 f;
#X obj 128 403 sig~;
#X obj 463 17 inlet~ segments;
#X obj 377 129 bng 15 250 50 0 empty empty ? 17 7 0 10 -4032 -1 -1
;
#X obj 320 269 s pd-\$2-help;
#X msg 320 247 vis 1;
#N canvas 244 160 858 562 \$2-help 0;
#X obj 170 8 cnv 15 300 240 empty empty HELP:vs-poly-gui 20 12 0 14
-4034 -66577 0;
#X text 177 33 INLETS:;
#X text 177 163 OUTLETS:;
#X text 203 76 2) Phase signal (0-1);
#X text 203 96 3) Scale signal (0-1);
#X text 203 116 4) Brightness signal (0-1);
#X text 203 186 1) X signal;
#X text 203 206 2) Y signal;
#X text 203 226 3) Brightness signal (0-1);
#X text 203 56 1) Ramp signal (i.e. from [phasor~]) (0-1);
#X text 8 314 The source of the ramp driving this abstraction is selected
from three options:;
#X text 19 405 EXT: ramp is taken from left-most inlet in the abstraction
;
#X text 20 429 MASTER: ramp is taken from the MASTER bus \, which could
be a [vs-phasor-gui] set to MASTER \, or the master clock of the [vs-multiplex-gui]
set to MASTER.;
#X text 420 254 Other controls:;
#X text 441 328 SCALE adjusts the amplitude of the output waveform.
;
#X text 19 359 INT: internal ramp generator with rough and fine tune
(freq/100) plus RESET button for phase. Set SMOOTH to ON if using MIDI
CC to control frequency.;
#X text 442 393 BRIGHTNESS sets the brightness value of this vector
figure.;
#X text 441 288 HARMONIC sets the output waveform to a harmonic multiple
of the driving ramp.;
#X text 442 423 POINTS sets the number of points to make the polygon
(2 for a line \, 3 for a triangle \, 4 for a square \, etc).;
#X text 441 456 Click the INTERPOLATION toggle ON for a continuous
audio signal if using an oscilloscope. Click the INTERPOLATION toggle
OFF for points if using an ILDA laser.;
#X text 7 262 [vs-poly-gui] is a simple \, ramp driven polygon generator
with a variable number of segments determined by the number of POINTS
used to draw it..;
#X text 203 136 5) Points signal (1 \, 2 \, 3 \, 4 \, 5....);
#X text 442 353 PHASE adjusts the phase of the output waveform \, resulting
in the illusion of rotation.;
#X restore 320 299 pd \$2-help;
#X obj 409 74 loadbang;
#X obj 633 318 f;
#X obj 149 276 pack 0 0;
#X obj 99 276 pack 0 0;
#X obj 99 301 line~;
#X obj 149 301 line~;
#X obj 197 246 * 20;
#X obj 266 419 pack 0 20;
#X obj 266 441 line~;
#X obj 222 466 pack 0 20;
#X obj 222 489 line~;
#X obj 197 407 pack 0 20;
#X obj 197 426 line~;
#X obj 261 130 hradio 15 1 0 2 \$2/smooth \$2/smooth ON 35 8 0 10 -257985
-1 -1 0;
#X text 260 115 Smooth;
#X text 602 527 Helsinki June 2019;
#X obj 377 572 kollabs/ds_reg \$1 \$2/points;
#X obj 247 180 hradio 15 1 0 2 \$2/interpolation \$2/interpolation
empty 0 -8 0 10 -4034 -1 -1 1;
#X obj 377 413 kollabs/ds_reg \$1 \$2/interpolation;
#X text 278 179 INTERP.OFF.ON;
#X obj 472 115 t b b b b b b b b b b b;
#X obj 472 360 pack 0 0 0 0 0 0 0 0 0 0 0;
#X obj 421 381 unpack 0 0 0 0 0 0 0 0 0 0 0;
#X obj 643 338 f;
#X obj 108 510 vs-poly, f 24;
#X obj 197 219 r \$2/smooth;
#X obj 162 341 r \$2/source;
#X obj 249 341 r \$2/interpolation;
#X connect 4 0 33 1;
#X connect 4 0 5 0;
#X connect 5 0 63 0;
#X connect 6 0 7 0;
#X connect 6 0 34 1;
#X connect 7 0 42 1;
#X connect 8 0 9 0;
#X connect 8 0 35 1;
#X connect 9 0 61 0;
#X connect 10 0 11 0;
#X connect 10 0 36 1;
#X connect 11 0 59 0;
#X connect 17 0 76 2;
#X connect 18 0 25 1;
#X connect 19 0 30 1;
#X connect 19 0 55 0;
#X connect 20 0 23 0;
#X connect 20 0 31 1;
#X connect 21 0 24 0;
#X connect 22 0 25 0;
#X connect 23 0 54 0;
#X connect 24 0 22 1;
#X connect 25 0 42 0;
#X connect 26 0 21 0;
#X connect 28 0 76 3;
#X connect 29 0 74 0;
#X connect 29 1 72 0;
#X connect 30 0 73 0;
#X connect 31 0 73 1;
#X connect 32 0 73 2;
#X connect 33 0 73 3;
#X connect 34 0 73 4;
#X connect 35 0 73 5;
#X connect 36 0 73 6;
#X connect 41 0 76 4;
#X connect 42 0 76 0;
#X connect 43 0 44 1;
#X connect 43 0 46 0;
#X connect 44 0 73 7;
#X connect 45 0 73 8;
#X connect 46 0 76 1;
#X connect 47 0 76 1;
#X connect 48 0 50 0;
#X connect 50 0 49 0;
#X connect 52 0 19 0;
#X connect 52 0 43 0;
#X connect 52 0 27 0;
#X connect 52 0 21 0;
#X connect 52 0 20 0;
#X connect 52 0 10 0;
#X connect 52 0 8 0;
#X connect 52 0 6 0;
#X connect 52 0 4 0;
#X connect 52 0 69 0;
#X connect 53 0 73 9;
#X connect 54 0 57 0;
#X connect 55 0 56 0;
#X connect 56 0 22 0;
#X connect 57 0 22 0;
#X connect 58 0 54 1;
#X connect 58 0 55 1;
#X connect 59 0 60 0;
#X connect 60 0 76 4;
#X connect 61 0 62 0;
#X connect 62 0 76 3;
#X connect 63 0 64 0;
#X connect 64 0 76 2;
#X connect 72 0 30 0;
#X connect 72 1 31 0;
#X connect 72 2 32 0;
#X connect 72 3 33 0;
#X connect 72 4 34 0;
#X connect 72 5 35 0;
#X connect 72 6 36 0;
#X connect 72 7 44 0;
#X connect 72 8 45 0;
#X connect 72 9 53 0;
#X connect 72 10 75 0;
#X connect 73 0 29 0;
#X connect 74 0 19 0;
#X connect 74 1 20 0;
#X connect 74 2 27 0;
#X connect 74 3 4 0;
#X connect 74 4 6 0;
#X connect 74 5 8 0;
#X connect 74 6 10 0;
#X connect 74 7 43 0;
#X connect 74 8 69 0;
#X connect 74 9 65 0;
#X connect 75 0 73 10;
#X connect 76 0 1 0;
#X connect 76 1 2 0;
#X connect 76 2 3 0;
#X connect 77 0 58 0;
#X connect 77 0 53 1;
#X connect 78 0 25 2;
#X connect 78 0 32 1;
#X connect 79 0 76 5;
#X connect 79 0 45 1;
#X coords 0 -1 1 1 302 100 1 100 100;