annotate examples/08-PureData/midi-poly-synth/maxArray.pd @ 507:1cec96845a23 prerelease

Explanted explantation
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 22 Jun 2016 01:51:17 +0100
parents 8fcfbfb32aa0
children
rev   line source
robert@464 1 #N canvas 464 23 1002 583 10;
robert@464 2 #X obj 224 202 max;
robert@464 3 #X obj 265 200 f;
robert@464 4 #X obj 223 229 change;
robert@464 5 #X obj 223 251 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
robert@464 6 -1 -1;
robert@464 7 #X obj 223 271 f;
robert@464 8 #X obj 259 323 f;
robert@464 9 #X obj 187 315 f;
robert@464 10 #X obj 268 282 t b b;
robert@464 11 #X obj 183 364 outlet;
robert@464 12 #X obj 269 379 outlet;
robert@464 13 #X obj 179 17 inlet;
robert@464 14 #X obj 225 177 tabread \$1;
robert@464 15 #X obj 230 88 t f f b;
robert@464 16 #X text 376 37 Finds a maximum value in an array;
robert@464 17 #X text 531 112 \$2 arrayLength;
robert@464 18 #X obj 292 10 inlet;
robert@464 19 #X text 425 146 inlets:;
robert@464 20 #X text 473 144 1 bang to find the maximum;
robert@464 21 #X text 475 157 2 arrayLength;
robert@464 22 #X text 407 90 creation arguments: \$1 arrayName;
robert@464 23 #X obj 246 38 \$2;
robert@464 24 #X obj 202 40 bang;
robert@464 25 #X obj 230 65 f;
robert@464 26 #X obj 224 6 loadbang;
robert@464 27 #X text 444 216 outlets: 1 maximum value;
robert@464 28 #X text 498 231 2 index of the maximum value;
robert@464 29 #X msg 276 141 -1e+15;
robert@464 30 #X obj 222 142 t f f f;
robert@464 31 #X floatatom 158 266 5 0 0 0 - - -, f 5;
robert@464 32 #X obj 332 302 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
robert@464 33 -1 -1;
robert@464 34 #X obj 288 253 select 127;
robert@464 35 #X floatatom 301 324 5 0 0 0 - - -, f 5;
robert@464 36 #X text 362 256 heavy does not support the second inlet of select so
robert@464 37 I have to hard code 127 in here;
robert@464 38 #X obj 223 110 countTo;
robert@464 39 #X connect 0 0 1 0;
robert@464 40 #X connect 0 0 2 0;
robert@464 41 #X connect 0 0 6 1;
robert@464 42 #X connect 0 0 28 0;
robert@464 43 #X connect 1 0 0 1;
robert@464 44 #X connect 2 0 3 0;
robert@464 45 #X connect 3 0 4 0;
robert@464 46 #X connect 4 0 5 1;
robert@464 47 #X connect 4 0 31 0;
robert@464 48 #X connect 5 0 9 0;
robert@464 49 #X connect 6 0 8 0;
robert@464 50 #X connect 7 0 6 0;
robert@464 51 #X connect 7 1 5 0;
robert@464 52 #X connect 10 0 21 0;
robert@464 53 #X connect 11 0 0 0;
robert@464 54 #X connect 12 0 33 0;
robert@464 55 #X connect 12 2 26 0;
robert@464 56 #X connect 15 0 22 1;
robert@464 57 #X connect 20 0 22 1;
robert@464 58 #X connect 21 0 22 0;
robert@464 59 #X connect 22 0 12 0;
robert@464 60 #X connect 23 0 20 0;
robert@464 61 #X connect 26 0 0 1;
robert@464 62 #X connect 27 0 30 0;
robert@464 63 #X connect 27 1 11 0;
robert@464 64 #X connect 27 2 4 1;
robert@464 65 #X connect 30 0 7 0;
robert@464 66 #X connect 30 0 29 0;
robert@464 67 #X connect 33 0 27 0;