blob: dbfa3b2fb449af0e20143e1fe812853979321628 (
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
|
#N canvas 1271 125 846 618 10;
#X declare -lib cyclone;
#X text 355 479 see also:;
#X text 28 9 Performs bitwise boolean operations on a floating point
signal as bits or as an integer. Note that if you are converting the
floats to ints and back that single precision floating point values
only retain 24 bits of integer resolution. The floating point bits
from left to right are <1 sign bit> <8 exponent bits> <23 mantissa
bits>.;
#X text 28 -18 Bitwise xor signal operator.;
#X obj 72 378 clip~ -1 1;
#X floatatom 532 268 0 0 0 0 - - -;
#X msg 532 286 mode \$1;
#X text 47 231 bitwise boolean operation on a signal and some bitmask
as bits;
#X floatatom 480 266 0 0 0 0 - - -;
#X floatatom 431 266 0 0 0 0 - - -;
#X obj 480 286 sig~ 1;
#X obj 431 286 sig~ 1;
#X text 28 105 send bitmask;
#X floatatom 101 401 0 0 0 0 - - -;
#X obj 72 420 *~ 0.2;
#X obj 231 116 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 446 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 433 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 420 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 407 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 394 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 381 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 368 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 355 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 342 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 329 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 316 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 303 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 290 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 277 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 264 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 251 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 238 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 225 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 212 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 199 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 186 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 173 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 160 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 147 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 30 119 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 134 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 121 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 108 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 95 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 82 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 69 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 56 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 43 157 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 30 182 pack bits 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 floatatom 99 299 0 0 0 0 - - -;
#X obj 72 454 dac~;
#X obj 68 260 cycle~ 440;
#X text 255 373 args: <mask> <mode>. both default to 0;
#X text 463 158 <= set bitmask;
#X text 432 231 bitwise boolean operation on signals as integers;
#X text 92 283 use an integer as a bitmask;
#X obj 443 31 import cyclone;
#X obj 431 310 bitxor~ 0 1;
#X text 255 399 modes \; mode 0: treat both floating point signal inputs
as raw 32 bit values \; mode 1: convert both floating point signal
inputs to integers \; mode 2: treat left input as raw 32 bit value
\, convert right input to integer \; mode 3: convert left input to
integer \, treat right input as raw 32 bit value \;;
#X obj 431 338 Snapshot~ 100;
#X obj 433 361 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 6 256;
#X obj 68 319 bitxor~;
#X connect 3 0 13 0;
#X connect 4 0 5 0;
#X connect 5 0 57 0;
#X connect 7 0 9 0;
#X connect 8 0 10 0;
#X connect 9 0 57 1;
#X connect 10 0 57 0;
#X connect 12 0 13 1;
#X connect 13 0 50 0;
#X connect 13 0 50 1;
#X connect 14 0 47 0;
#X connect 14 0 46 0;
#X connect 14 0 45 0;
#X connect 14 0 44 0;
#X connect 14 0 43 0;
#X connect 14 0 42 0;
#X connect 14 0 41 0;
#X connect 14 0 40 0;
#X connect 14 0 38 0;
#X connect 14 0 37 0;
#X connect 14 0 36 0;
#X connect 14 0 35 0;
#X connect 14 0 34 0;
#X connect 14 0 33 0;
#X connect 14 0 32 0;
#X connect 14 0 31 0;
#X connect 14 0 30 0;
#X connect 14 0 29 0;
#X connect 14 0 28 0;
#X connect 14 0 27 0;
#X connect 14 0 26 0;
#X connect 14 0 25 0;
#X connect 14 0 24 0;
#X connect 14 0 23 0;
#X connect 14 0 22 0;
#X connect 14 0 21 0;
#X connect 14 0 20 0;
#X connect 14 0 19 0;
#X connect 14 0 18 0;
#X connect 14 0 17 0;
#X connect 14 0 16 0;
#X connect 14 0 15 0;
#X connect 15 0 48 32;
#X connect 16 0 48 31;
#X connect 17 0 48 30;
#X connect 18 0 48 29;
#X connect 19 0 48 28;
#X connect 20 0 48 27;
#X connect 21 0 48 26;
#X connect 22 0 48 25;
#X connect 23 0 48 24;
#X connect 24 0 48 23;
#X connect 25 0 48 22;
#X connect 26 0 48 21;
#X connect 27 0 48 20;
#X connect 28 0 48 19;
#X connect 29 0 48 18;
#X connect 30 0 48 17;
#X connect 31 0 48 16;
#X connect 32 0 48 15;
#X connect 33 0 48 14;
#X connect 34 0 48 13;
#X connect 35 0 48 12;
#X connect 36 0 48 11;
#X connect 37 0 48 10;
#X connect 38 0 48 9;
#X connect 39 0 48 0;
#X connect 40 0 48 8;
#X connect 41 0 48 7;
#X connect 42 0 48 6;
#X connect 43 0 48 5;
#X connect 44 0 48 4;
#X connect 45 0 48 3;
#X connect 46 0 48 2;
#X connect 47 0 48 1;
#X connect 48 0 61 0;
#X connect 49 0 61 1;
#X connect 51 0 61 0;
#X connect 57 0 59 0;
#X connect 59 0 60 0;
#X connect 61 0 3 0;
|