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
|
#N canvas 342 54 807 504 12;
#X obj 14 13 +;
#X text 7 440 see also:;
#X obj 85 443 +~;
#X obj 211 361 min 20;
#X obj 43 13 -;
#X obj 73 13 *;
#X obj 103 13 /;
#X obj 138 13 max;
#X obj 169 13 min;
#X obj 313 445 >;
#X floatatom 122 282 5 0 0 0 - - - 0;
#X floatatom 165 282 8 0 0 0 - - - 0;
#X floatatom 282 282 5 0 0 0 - - - 0;
#X floatatom 335 162 5 0 0 0 - - - 0;
#X obj 335 189 t b f;
#X text 95 161 set left and right inputs here;
#X floatatom 238 282 5 0 0 0 - - - 0;
#X obj 38 249 +;
#X obj 80 249 -;
#X obj 122 249 *;
#X obj 165 249 /;
#X obj 238 249 max;
#X obj 282 249 min;
#X floatatom 38 162 5 0 0 0 - - - 0;
#X obj 594 446 expr;
#X obj 256 471 sin;
#X obj 157 361 + 3;
#X obj 277 361 * 3;
#X floatatom 80 282 5 0 0 0 - - - 0;
#X floatatom 38 282 5 0 0 0 - - - 0;
#X floatatom 211 394 5 0 0 0 - - - 0;
#X floatatom 157 394 5 0 0 0 - - - 0;
#X floatatom 277 394 5 0 0 0 - - - 0;
#X floatatom 211 329 5 0 0 0 - - - 0;
#X floatatom 277 329 5 0 0 0 - - - 0;
#X floatatom 157 329 5 0 0 0 - - - 0;
#N canvas 706 96 563 496 reference 0;
#X obj 8 242 cnv 5 550 5 empty empty INLETS: 8 18 0 13 #202020 #000000 0;
#X obj 8 277 cnv 1 550 1 empty empty 1st: 8 12 0 13 #9f9f9f #000000 0;
#X obj 8 373 cnv 2 550 2 empty empty OUTLET: 8 12 0 13 #202020 #000000 0;
#X obj 8 414 cnv 2 550 2 empty empty ARGUMENT: 8 12 0 13 #202020 #000000 0;
#X obj 7 473 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X obj 8 332 cnv 1 550 1 empty empty 2nd: 8 12 0 13 #7c7c7c #000000 0;
#X text 107 284 bang - output the operation on the previously set values.;
#X text 102 383 float - the result of the operation., f 58;
#X obj 25 46 +;
#X obj 25 69 -;
#X obj 25 92 *;
#X obj 25 115 /;
#X obj 25 161 min;
#X obj 25 138 max;
#X text 71 45 - add two numbers., f 66;
#X text 71 68 - subtract two numbers., f 66;
#X text 71 91 - multiply two numbers., f 66;
#X text 71 114 - divide two numbers., f 66;
#X text 71 138 - maximum (highest) value of two numbers., f 66;
#X text 71 161 - minimum (lowest) value of two numbers., f 66;
#X text 100 303 float - set value to the left side of operation and output.;
#X text 101 342 float - set value to the right side of operation., f 58;
#X obj 25 186 log;
#X obj 25 209 pow;
#X text 71 185 - calculate logarithms (input \, base)., f 66;
#X text 71 208 - calculate power function (base \, exponent)., f 66;
#X text 103 424 1) float -;
#X text 182 424 initialize value of right inlet (default 'e' for [log] \, 0 otherwise)., f 44;
#X text 22 14 Control rate binary (two-input) operators:;
#X restore 684 9 pd reference;
#X text 617 9 click =>;
#X obj 4 44 cnv 1 800 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X obj 204 13 log;
#X obj 235 13 pow;
#X floatatom 405 282 8 0 0 0 - - - 0;
#X floatatom 335 282 8 0 0 0 - - - 0;
#X obj 335 249 log;
#X obj 405 249 pow;
#X obj 4 433 cnv 1 800 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X floatatom 332 394 8 0 0 0 - - - 0;
#X floatatom 405 394 8 0 0 0 - - - 0;
#X obj 332 361 log 2;
#X obj 405 361 pow 3;
#X floatatom 332 329 5 0 0 0 - - - 0;
#X floatatom 405 329 5 0 0 0 - - - 0;
#X text 9 54 These binary operators perform the 4 arithmetic functions ([+] \, etc) \, output the minimum or maximum of two numbers ([min] \, [max]) and perform logarithms ([log]) and power function ([pow]). All of these objects take a bang message to evaluate the operation with the previously set values and an argument to set the right input value., f 58;
#X obj 18 471 abs;
#X text 602 475 updated for Pd version 0.54;
#X text 268 13 - control binary operators;
#X text 121 443 (etc.) - signal versions;
#X text 47 472 (etc.) - unary operators;
#X text 350 445 (etc.) - other binary operators;
#X text 286 472 (etc.) - trigonometric functions;
#X text 448 55 As in the signal versions \; - [log] takes a base value via an argument or the right inlet but defaults to "e". A 0 or negative left input gives -1000 as the result \; - [pow] has protection against NaNs (they become 0) \, and it raises a number on the left inlet to a numeric power (given by the right inlet or argument)., f 48;
#X text 48 332 Initializing right input with an -----> argument, f 14;
#X text 514 192 As usual in Pd \, you can send a list so that values get spread into the inlets., f 35;
#X msg 615 272 1 \$1;
#X floatatom 615 242 5 1 100 0 - - - 0;
#X obj 615 350 /;
#X floatatom 615 382 8 0 0 0 - - - 0;
#X listbox 615 300 6 0 0 0 - - - 0;
#X floatatom 545 382 8 0 0 0 - - - 0;
#X obj 545 350 +;
#X floatatom 685 382 8 0 0 0 - - - 0;
#X obj 685 350 -;
#X connect 3 0 30 0;
#X connect 13 0 14 0;
#X connect 14 0 17 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 43 0;
#X connect 14 0 44 0;
#X connect 14 1 17 1;
#X connect 14 1 18 1;
#X connect 14 1 19 1;
#X connect 14 1 20 1;
#X connect 14 1 21 1;
#X connect 14 1 22 1;
#X connect 14 1 43 1;
#X connect 14 1 44 1;
#X connect 17 0 29 0;
#X connect 18 0 28 0;
#X connect 19 0 10 0;
#X connect 20 0 11 0;
#X connect 21 0 16 0;
#X connect 22 0 12 0;
#X connect 23 0 17 0;
#X connect 23 0 18 0;
#X connect 23 0 19 0;
#X connect 23 0 20 0;
#X connect 23 0 21 0;
#X connect 23 0 22 0;
#X connect 23 0 43 0;
#X connect 23 0 44 0;
#X connect 26 0 31 0;
#X connect 27 0 32 0;
#X connect 33 0 3 0;
#X connect 34 0 27 0;
#X connect 35 0 26 0;
#X connect 43 0 42 0;
#X connect 44 0 41 0;
#X connect 48 0 46 0;
#X connect 49 0 47 0;
#X connect 50 0 48 0;
#X connect 51 0 49 0;
#X connect 63 0 67 0;
#X connect 64 0 63 0;
#X connect 65 0 66 0;
#X connect 67 0 65 0;
#X connect 67 0 69 0;
#X connect 67 0 71 0;
#X connect 69 0 68 0;
#X connect 71 0 70 0;
|