File: list-normalize-help.pd

package info (click to toggle)
pd-list-abs 0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 756 kB
  • sloc: makefile: 289
file content (79 lines) | stat: -rw-r--r-- 2,525 bytes parent folder | download | duplicates (3)
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
#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;