diff options
Diffstat (limited to 'doc/help/cyclone/bitand~-help.pd')
-rw-r--r-- | doc/help/cyclone/bitand~-help.pd | 500 |
1 files changed, 300 insertions, 200 deletions
diff --git a/doc/help/cyclone/bitand~-help.pd b/doc/help/cyclone/bitand~-help.pd index aa9e85a..40f5727 100644 --- a/doc/help/cyclone/bitand~-help.pd +++ b/doc/help/cyclone/bitand~-help.pd @@ -1,202 +1,302 @@ -#N canvas 1 88 739 564 10; -#X text 17 0 Bitwise and signal operator.; -#X obj 20 439 clip~ -1 1; -#X floatatom 356 286 0 0 0 0 - - -; -#X msg 356 304 mode \$1; -#X text 38 219 bitwise boolean operation on a signal and some bitmask -as bits; -#X floatatom 478 284 0 0 0 0 - - -; -#X floatatom 415 284 0 0 0 0 - - -; -#X obj 478 304 sig~ 1; -#X obj 415 304 sig~ 1; -#X text 129 429 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 text 19 103 send bitmask; -#X floatatom 49 461 0 0 0 0 - - -; -#X obj 20 480 *~ 0.2; -#X obj 222 124 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 437 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 424 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 411 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 398 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 385 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 372 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 359 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 346 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 333 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 320 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 307 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 294 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 281 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 268 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 255 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 242 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 229 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 216 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 203 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 190 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 177 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 164 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 151 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 138 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 125 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 112 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 99 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 86 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 73 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 60 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 47 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 34 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X floatatom 84 338 0 0 0 0 - - -; -#X obj 20 519 dac~; -#X obj 53 299 cycle~ 440; -#X text 129 403 args: <mask> <mode>. both default to 0; -#X text 454 166 <= set bitmask; -#X text 346 259 bitwise boolean operation on signals as integers; -#X text 87 364 use an integer as a bitmask; -#X text 15 25 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 obj 415 328 bitand~ 0 1; -#X obj 415 388 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 --262144 -1 -1 0 256; -#X obj 415 361 unsig~; -#X obj 21 397 bitand~; -#N canvas 307 159 494 402 META 0; -#X text 12 175 HELP_PATCH_AUTHORS Christoph Kummerer. Revised by Jonathan -Wilkes for Pd-extended 0.42 to conform to the PDDP template.; -#X text 12 145 WEBSITE http://suita.chopin.edu.pl/~czaja/miXed/externs/cyclone.html +#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 text 12 45 DESCRIPTION bitwise and signal operator; -#X text 12 65 INLET_0 signal bits; -#X text 12 85 INLET_1 signal; -#X text 12 105 OUTLET_0 signal; -#X text 12 25 LICENSE SIBSD; -#X text 12 125 AUTHOR Krzysztof Czaja; -#X text 12 5 KEYWORDS signal conversion max_compatible; -#X restore 677 522 pd META; -#X obj 21 190 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 +#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 21 125 bits; -#X obj 21 266 list trim; -#X connect 1 0 12 0; -#X connect 2 0 3 0; -#X connect 3 0 54 0; -#X connect 5 0 7 0; -#X connect 6 0 8 0; -#X connect 7 0 54 1; -#X connect 8 0 54 0; -#X connect 11 0 12 1; -#X connect 12 0 47 0; -#X connect 12 0 47 1; -#X connect 13 0 45 0; -#X connect 13 0 44 0; -#X connect 13 0 43 0; -#X connect 13 0 42 0; -#X connect 13 0 41 0; -#X connect 13 0 40 0; -#X connect 13 0 39 0; -#X connect 13 0 38 0; -#X connect 13 0 37 0; -#X connect 13 0 36 0; -#X connect 13 0 35 0; -#X connect 13 0 34 0; -#X connect 13 0 33 0; -#X connect 13 0 32 0; -#X connect 13 0 31 0; -#X connect 13 0 30 0; -#X connect 13 0 29 0; -#X connect 13 0 28 0; -#X connect 13 0 27 0; -#X connect 13 0 26 0; -#X connect 13 0 25 0; -#X connect 13 0 24 0; -#X connect 13 0 23 0; -#X connect 13 0 22 0; -#X connect 13 0 21 0; -#X connect 13 0 20 0; -#X connect 13 0 19 0; -#X connect 13 0 18 0; -#X connect 13 0 17 0; -#X connect 13 0 16 0; -#X connect 13 0 15 0; -#X connect 13 0 14 0; -#X connect 14 0 59 32; -#X connect 15 0 59 31; -#X connect 16 0 59 30; -#X connect 17 0 59 29; -#X connect 18 0 59 28; -#X connect 19 0 59 27; -#X connect 20 0 59 26; -#X connect 21 0 59 25; -#X connect 22 0 59 24; -#X connect 23 0 59 23; -#X connect 24 0 59 22; -#X connect 25 0 59 21; -#X connect 26 0 59 20; -#X connect 27 0 59 19; -#X connect 28 0 59 18; -#X connect 29 0 59 17; -#X connect 30 0 59 16; -#X connect 31 0 59 15; -#X connect 32 0 59 14; -#X connect 33 0 59 13; -#X connect 34 0 59 12; -#X connect 35 0 59 11; -#X connect 36 0 59 10; -#X connect 37 0 59 9; -#X connect 38 0 59 8; -#X connect 39 0 59 7; -#X connect 40 0 59 6; -#X connect 41 0 59 5; -#X connect 42 0 59 4; -#X connect 43 0 59 3; -#X connect 44 0 59 2; -#X connect 45 0 59 1; -#X connect 46 0 57 1; -#X connect 48 0 57 0; -#X connect 54 0 56 0; -#X connect 56 0 55 0; -#X connect 57 0 1 0; -#X connect 59 0 61 0; -#X connect 60 0 59 0; -#X connect 61 0 57 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; |