#N canvas 0 31 832 543 10;
#X obj 145 295 list-normalize;
#X msg 145 183 10 100 200;
#X msg 157 204 -10 100 200;
#X msg 165 226 -10 100 and -200;
#X msg 168 251 0.1 0.01 and -0.02;
#X text 40 13 list-normalize: normalize a list.;
#X text 54 89 All the other float elements then are scaled with the
same factor.;
#X text 54 41 First it looks for the element with the largest absolute
value \, then this is scaled to be 1 or -1 preserving the sign.;
#X text 54 129 It's the same operation as the "Normalize" instruction
in many soundfile editors or the "normalize 1" method of Pd arrays.
;
#X obj 427 425 list-math *;
#X text 33 427 Hint: To normalize to values other than 1 \, you can
use:;
#X obj 499 366 loadbang;
#X floatatom 499 406 5 0 0 0 - - -;
#X msg 499 386 3;
#X obj 145 377 print Normalized;
#X obj 427 450 print Norm_to_3;
#X obj 617 28 vsl 15 128 0 127 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X obj 617 205 pack 0 0 0;
#X obj 639 166 t b f;
#X obj 685 169 t b f;
#X obj 617 267 unpack 0 0 0;
#X obj 652 28 vsl 15 128 0 127 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X obj 685 28 vsl 15 128 0 127 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X floatatom 617 298 5 0 0 0 - - -;
#X floatatom 656 298 5 0 0 0 - - -;
#X floatatom 696 298 5 0 0 0 - - -;
#X obj 617 324 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X obj 656 324 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X obj 696 324 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X text 735 94 0-127;
#X text 740 390 0-1;
#X obj 617 240 list-normalize;
#N canvas 460 31 494 396 META 0;
#X text 12 25 LICENSE SIBSD;
#X text 12 105 AUTHOR Frank Barknecht;
#X text 12 125 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
added by Jonathan Wilkes for Pd version 0.42.;
#X text 12 5 KEYWORDS control list_op;
#X text 12 85 OUTLET_0 list;
#X text 12 45 DESCRIPTION normalize a list;
#X text 12 65 INLET_0 list;
#X restore 746 491 pd META;
#X connect 0 0 9 0;
#X connect 0 0 14 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 9 0 15 0;
#X connect 11 0 13 0;
#X connect 12 0 9 1;
#X connect 13 0 12 0;
#X connect 16 0 17 0;
#X connect 17 0 31 0;
#X connect 18 0 17 0;
#X connect 18 1 17 1;
#X connect 19 0 17 0;
#X connect 19 1 17 2;
#X connect 20 0 23 0;
#X connect 20 1 24 0;
#X connect 20 2 25 0;
#X connect 21 0 18 0;
#X connect 22 0 19 0;
#X connect 23 0 26 0;
#X connect 24 0 27 0;
#X connect 25 0 28 0;
#X connect 31 0 20 0;
