blob: 40f57272bb024f3f22b9c872d1f21668be76a79d (
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
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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
|
#N canvas 528 81 570 533 10;
#X obj 0 806 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289
0;
#X obj 0 501 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#N canvas 670 414 340 251 META 0;
#X text 1 20 LICENSE SIBSD;
#X text 1 113 LIBRARY cyclone;
#X text 1 0 KEYWORDS bitwise bit boolean signal;
#X text 1 40 DESCRIPTION performs bitwise boolean operations on a floating
point signal as bits or as a float;
#X text 1 73 INLET_0 signal;
#X text 1 93 OUTLET_0 signal;
#X text 0 133 VERSION 0.1-alpha57;
#X text 0 151 AUTHOR Krzysztof Czaja;
#X text 1 169 RELEASE_DATE 2002;
#X text 2 188 WEBSITE http://suita.chopin.edu.pl/~czaja/miXed/externs/cyclone.html
;
#X text 2 220 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 501 809 pd META;
#X obj 0 646 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 0 683 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#N canvas 214 725 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 obj 6 28 cyclone/bitnot~;
#X obj 6 55 cyclone/bitor~;
#X obj 6 78 cyclone/bitxor~;
#X obj 108 29 cyclone/bitshift~;
#X restore 203 809 pd Related_objects;
#X obj 80 655 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 0 0 cnv 15 552 40 empty empty bitand~ 3 12 0 18 -204280 -1 0
;
#X obj 51 410 clip~ -1 1;
#X text 83 89 send bitmask;
#X obj 282 90 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 498 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 483 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 469 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 455 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 441 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 427 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 413 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 399 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 385 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 370 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 356 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 342 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 328 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 314 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 300 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 286 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 272 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 258 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 244 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 230 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 216 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 202 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 188 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 174 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 160 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 146 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 132 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 118 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 104 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 90 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 76 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 62 132 tgl 15 0 \$0-bitchange empty empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 52 161 pack s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0;
#X msg 52 92 bits;
#X obj 52 198 list trim;
#X text 118 655 signal;
#X text 91 697 1) float;
#X text 91 715 2) float;
#X obj 499 4 bitand~;
#X text 18 22 Performs bitwise boolean operations on a float signal.
;
#X text 55 46 Works on floating point signal as bits or as an integer:
;
#X text 176 71 bitwise operation on a signal as bits;
#X obj 50 450 output~;
#X text 116 512 signal;
#X obj 81 517 cnv 17 3 70 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X text 116 601 signal;
#X obj 81 605 cnv 17 3 25 empty empty 1 5 9 0 16 -228856 -162280 0
;
#X text 116 618 float;
#X text 216 716 left inlet;
#X text 389 716 right inlet;
#X text 188 734 0;
#X text 188 747 1;
#X text 188 760 2;
#X text 188 774 3;
#N canvas 555 556 430 300 view 0;
#X obj 106 25 inlet~;
#X obj 106 90 tabwrite~ \$0-bitand;
#X obj 133 68 metro 100;
#X obj 145 49 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X text 92 131 1;
#X text 87 261 -1;
#X obj 107 134 hsl 195 140 0 127 0 0 blank_outlet blank_inlet empty
-2 -8 0 10 -262144 -262144 -262144 0 1;
#X obj 1 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-bitand 1024 float 0;
#X coords 0 1 1023 -1 200 140 1 0 0;
#X restore 104 134 graph;
#X obj 157 27 loadbang;
#X text 6 0 Graph viewer;
#X text 34 278 The graph is placed in a sub-patch to prevent audio-dropouts
;
#X connect 0 0 1 0;
#X connect 2 0 1 0;
#X connect 3 0 2 0;
#X connect 9 0 3 0;
#X restore 124 449 pd view;
#X obj 73 265 cyclone/cycle~ 220;
#X text 122 429 click for graph;
#X obj 52 69 r \$0-bitchange;
#X obj 74 219 cyclone/tosymbol;
#X symbolatom 74 241 70 0 0 0 - - -;
#X text 163 715 - modes:;
#X text 117 529 list;
#X text 116 560 mode;
#X text 171 560 - values 0 to 3 The interpretation of the values at
the two inlets. See argument description for details;
#X obj 52 338 cyclone/bitand~ -1 0;
#X text 171 529 - if the first element is "bits" \, the following 32
elements are interpreted as 0's and 1's;
#N canvas 583 510 433 348 mask 0;
#X obj 22 217 clip~ -1 1;
#X obj 24 54 cyclone/cycle~ 220;
#X obj 22 246 output~;
#X obj 23 133 cyclone/bitand~ -1 1;
#X msg 156 55 -1;
#X msg 167 77 65535;
#X msg 180 98 255;
#X obj 1 1 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X obj 106 225 metro 100;
#X obj 106 207 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X text 216 53 1;
#X obj 229 56 hsl 195 140 0 127 0 0 blank_outlet blank_inlet empty
-2 -8 0 10 -262144 -262144 -262144 0 1;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-bitand2 1024 float 0;
#X coords 0 1 1023 -1 200 140 1 0 0;
#X restore 226 56 graph;
#X obj 106 187 loadbang;
#X obj 106 245 tabwrite~ \$0-bitand2;
#X text 210 181 -1;
#X obj 23 83 *~ 10000;
#X obj 22 189 /~ 10000;
#X text 21 302 When using integers (mode 1 \, 3) as bitmask \, make
sure the signal is larger than +/- 1;
#X obj 156 29 loadbang;
#X text 5 2 bitand~ mask with integers;
#X connect 0 0 2 0;
#X connect 0 0 14 0;
#X connect 1 0 16 0;
#X connect 3 0 17 0;
#X connect 4 0 3 1;
#X connect 5 0 3 1;
#X connect 6 0 3 1;
#X connect 8 0 14 0;
#X connect 9 0 8 0;
#X connect 13 0 9 0;
#X connect 16 0 3 0;
#X connect 17 0 0 0;
#X connect 19 0 4 0;
#X restore 416 472 pd mask with integers;
#X text 171 655 - output bitwise-and masked signal;
#X text 171 601 - bitwise-and mask;
#X text 171 618 - bitwise-and mask;
#X text 214 734 use signal/float as is;
#X text 390 734 use signal/float as is;
#X text 390 747 convert signal/float to int;
#X text 390 761 convert signal/float to int;
#X text 390 774 use signal/float as is;
#X text 214 774 convert signal/float to int;
#X text 214 747 convert signal/float to int;
#X text 214 760 use signal/float as is;
#X text 162 698 - mask: interpreted as integer. 0 is default \, -1
is max.;
#X text 171 512 - signal to execute bitwise-and on;
#X connect 8 0 65 0;
#X connect 8 0 53 0;
#X connect 8 0 53 1;
#X connect 10 0 42 0;
#X connect 10 0 41 0;
#X connect 10 0 40 0;
#X connect 10 0 39 0;
#X connect 10 0 38 0;
#X connect 10 0 37 0;
#X connect 10 0 36 0;
#X connect 10 0 35 0;
#X connect 10 0 34 0;
#X connect 10 0 33 0;
#X connect 10 0 32 0;
#X connect 10 0 31 0;
#X connect 10 0 30 0;
#X connect 10 0 29 0;
#X connect 10 0 28 0;
#X connect 10 0 27 0;
#X connect 10 0 26 0;
#X connect 10 0 25 0;
#X connect 10 0 24 0;
#X connect 10 0 23 0;
#X connect 10 0 22 0;
#X connect 10 0 21 0;
#X connect 10 0 20 0;
#X connect 10 0 19 0;
#X connect 10 0 18 0;
#X connect 10 0 17 0;
#X connect 10 0 16 0;
#X connect 10 0 15 0;
#X connect 10 0 14 0;
#X connect 10 0 13 0;
#X connect 10 0 12 0;
#X connect 10 0 11 0;
#X connect 11 0 43 32;
#X connect 12 0 43 31;
#X connect 13 0 43 30;
#X connect 14 0 43 29;
#X connect 15 0 43 28;
#X connect 16 0 43 27;
#X connect 17 0 43 26;
#X connect 18 0 43 25;
#X connect 19 0 43 24;
#X connect 20 0 43 23;
#X connect 21 0 43 22;
#X connect 22 0 43 21;
#X connect 23 0 43 20;
#X connect 24 0 43 19;
#X connect 25 0 43 18;
#X connect 26 0 43 17;
#X connect 27 0 43 16;
#X connect 28 0 43 15;
#X connect 29 0 43 14;
#X connect 30 0 43 13;
#X connect 31 0 43 12;
#X connect 32 0 43 11;
#X connect 33 0 43 10;
#X connect 34 0 43 9;
#X connect 35 0 43 8;
#X connect 36 0 43 7;
#X connect 37 0 43 6;
#X connect 38 0 43 5;
#X connect 39 0 43 4;
#X connect 40 0 43 3;
#X connect 41 0 43 2;
#X connect 42 0 43 1;
#X connect 43 0 45 0;
#X connect 44 0 43 0;
#X connect 45 0 69 0;
#X connect 45 0 75 0;
#X connect 66 0 75 0;
#X connect 68 0 44 0;
#X connect 69 0 70 0;
#X connect 75 0 8 0;
|