blob: 253e506a0e970e67df9c236f9be773ef57fae700 (
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
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
|
#N canvas 526 84 567 530 10;
#X obj 0 706 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289
0;
#X obj 0 339 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#N canvas 589 462 372 220 META 0;
#X text 0 18 LICENSE SIBSD;
#X text 0 108 LIBRARY cyclone;
#X text 0 0 KEYWORDS signal oscillator function generator sine wave
;
#X text 0 36 DESCRIPTION table-lookup oscillator or function generator
;
#X text 0 54 INLET_0 float signal;
#X text 0 72 INLET_1 float signal;
#X text 0 90 OUTLET_0 signal;
#X text 0 128 VERSION 0.1-alpha57;
#X text 0 146 AUTHOR Krzysztof Czaja;
#X text 1 164 RELEASE_DATE 2002;
#X text 2 183 WEBSITE http://suita.chopin.edu.pl/~czaja/miXed/externs/cyclone.html
;
#X text 2 215 HELP_PATCH_AUTHORS Christoph Kummerer. Revised by Jonathan
Wilkes for Pd-extended 0.42 to conform to the PDDP template. Alex Cleveland
updated this patch for Pd-l2ork version 2013.05.28. Fred Jan Kraan
adapted the patch to pd-extended 2015-02-02;
#X restore 500 708 pd META;
#X obj 0 460 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 0 497 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#X obj 0 577 cnv 3 550 3 empty empty more_info 8 12 0 13 -228856 -1
0;
#N canvas 302 575 428 109 Related_objects 0;
#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 6 1 Related Objects;
#X restore 207 708 pd Related_objects;
#X obj 78 349 cnv 17 3 50 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 78 417 cnv 17 3 33 empty empty 1 5 9 0 16 -228856 -162280 0
;
#X obj 0 0 cnv 15 552 40 empty empty cycle~ 3 12 0 18 -204280 -1 0
;
#X text 12 23 Table-lookup oscillator or function generator;
#X text 110 350 float;
#X text 110 365 signal;
#X obj 78 469 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X text 110 415 float;
#X text 110 430 signal;
#X text 110 468 signal;
#X text 165 466 - the signal with given frequency or phase;
#X text 109 534 buffer;
#X obj 504 4 cycle~;
#X text 97 598 Symbol argument sets name of table to play from. Additional
int argument after that sets sample offset into the table (default
0);
#X obj 174 290 output~;
#X obj 205 254 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 173 254 *~ 0;
#X obj 233 254 *~ 0;
#X obj 265 254 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 38 198 cyclone/cycle~ 440;
#N canvas 419 169 1061 682 more 0;
#X msg 49 80 437;
#X obj 49 55 loadbang;
#X floatatom 49 105 0 0 0 0 - - -;
#X msg 49 130 \$1 400;
#X obj 49 155 line~;
#N canvas 68 756 286 323 generate-buffer~ 0;
#X obj 48 38 loadbang;
#X obj 2 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 5 1 Buffer contents generator;
#X msg 93 130 0;
#X text 93 57 fill the table;
#X obj 54 185 *~;
#X obj 123 157 line~;
#X obj 48 79 t b b b b;
#X obj 54 129 line~;
#X obj 54 157 osc~;
#X obj 48 219 tabwrite~ \$0-buffsky;
#X msg 54 103 880 0 \, 55 250;
#X msg 123 130 0.1 0 \, 1 250;
#X obj 16 49 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X connect 0 0 7 0;
#X connect 3 0 9 1;
#X connect 5 0 10 0;
#X connect 6 0 5 1;
#X connect 7 0 10 0;
#X connect 7 1 11 0;
#X connect 7 2 3 0;
#X connect 7 3 12 0;
#X connect 8 0 9 0;
#X connect 9 0 5 0;
#X connect 11 0 8 0;
#X connect 12 0 6 0;
#X connect 13 0 7 0;
#X restore 284 289 pd generate-buffer~;
#X obj 139 285 output~;
#X obj 170 250 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 138 249 *~ 0;
#X obj 198 249 *~ 0;
#X obj 230 250 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 49 191 cyclone/cycle~;
#X obj 2 3 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 5 4 Frequency input and using a lookup table;
#X text 44 32 frequency input;
#X text 240 33 scroll through buffer;
#X obj 283 93 f \$0;
#X obj 244 94 f \$0;
#X obj 283 55 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 244 55 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 244 191 cyclone/cycle~ 110 \$0-buffsky;
#N canvas 0 50 450 250 (subpatch) 0;
#X array \$0-output 512 float 4;
#X coords 0 1 511 -1 410 140 1 0 0;
#X restore 17 334 graph;
#X obj 261 249 tabwrite~ \$0-output;
#X obj 283 73 t b b;
#X obj 244 74 t b b;
#X msg 283 116 set \$1-buffsky 0;
#X msg 244 139 set \$1-buffsky 9150;
#X obj 17 654 s \$0-cursor;
#X obj 411 48 r \$0-cursor;
#X msg 393 160 set \$1-buffsky \$2;
#X msg 393 138 \$1 \$2;
#X obj 393 94 f \$0;
#X obj 393 116 pack f f;
#X obj 411 70 t b f;
#X obj 15 489 hsl 1024 140 0 10240 0 0 \$0-noOutlet \$0-noInlet empty
-2 -8 0 10 -262144 -262144 -1 0 1;
#X obj 15 489 hsl 1024 150 0 10240 0 0 empty empty empty -2 -8 0 10
-262144 -1 -1 92000 1;
#N canvas 0 50 450 250 (subpatch) 0;
#X array \$0-buffsky 10240 float 4;
#X coords 0 1 10239 -1 1024 140 1 0 0;
#X restore 14 489 graph;
#X obj 298 226 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 11 0;
#X connect 7 0 8 1;
#X connect 8 0 6 0;
#X connect 8 0 6 1;
#X connect 9 0 6 0;
#X connect 9 0 6 1;
#X connect 10 0 9 1;
#X connect 11 0 8 0;
#X connect 16 0 25 0;
#X connect 17 0 26 0;
#X connect 18 0 23 0;
#X connect 19 0 24 0;
#X connect 20 0 9 0;
#X connect 20 0 22 0;
#X connect 23 0 16 0;
#X connect 23 1 22 0;
#X connect 24 0 17 0;
#X connect 24 1 22 0;
#X connect 25 0 20 0;
#X connect 26 0 20 0;
#X connect 28 0 33 0;
#X connect 29 0 20 0;
#X connect 29 0 37 0;
#X connect 30 0 29 0;
#X connect 31 0 32 0;
#X connect 32 0 30 0;
#X connect 33 0 31 0;
#X connect 33 1 32 1;
#X connect 35 0 27 0;
#X connect 37 0 22 0;
#X restore 427 314 pd more examples;
#X text 108 516 float;
#X text 108 553 float;
#X text 14 52 cycle~ uses a stored table of 512 samples to generate
functions. By default it uses a sine wave \, but you can give it a
wavetable stored in an array or table.;
#X text 27 108 basic usage internal cos table;
#X obj 305 197 cyclone/cycle~ 440;
#X text 296 107 phase modulation;
#X text 110 383 set s f;
#X text 166 381 - set array and offset within array;
#X text 166 355 - scan frequency;
#X text 165 516 - default frequency;
#X obj 404 73 cnv 15 120 95 empty empty empty 20 12 0 14 -166433 -66577
0;
#X obj 411 114 osc~;
#X obj 411 136 *~;
#X msg 474 117 \$1 10;
#X obj 474 137 line~;
#X obj 305 147 nbx 4 14 0 10000 0 1 empty frequency Frequency 0 -8
0 10 -232576 -1 -1 369 256;
#X obj 411 93 nbx 4 14 0 1000 0 1 empty moduladora Frequency 0 -8 0
10 -204800 -1 -1 4 256;
#X obj 474 94 nbx 4 14 0 10 0 1 empty indice Depth 0 -8 0 10 -204786
-1 -1 5 256;
#X text 404 55 Modulation;
#X text 165 421 - phase input;
#X text 97 643 When used with an external array or table \, the cycle~
object attempts to read 512 samples. If not enough samples are available
\, due to a too slall array or a to great offset \, the remainder is
filled with zero.;
#X text 165 534 - can give function stored in buffer object (array
\, table);
#X text 165 553 - set offset within the external array;
#X connect 22 0 23 1;
#X connect 23 0 21 0;
#X connect 23 0 21 1;
#X connect 24 0 21 0;
#X connect 24 0 21 1;
#X connect 25 0 24 1;
#X connect 26 0 23 0;
#X connect 32 0 24 0;
#X connect 39 0 40 0;
#X connect 40 0 32 1;
#X connect 41 0 42 0;
#X connect 42 0 40 1;
#X connect 43 0 32 0;
#X connect 44 0 39 0;
#X connect 45 0 41 0;
|