aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/3.audio.examples/butterworth3~.pd
blob: 9b6511c67ae2d067b18dd600afda0761359125fe (plain)
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
#N canvas -21 471 656 598 10;
#X obj 59 313 rpole~;
#X obj 58 379 cpole~;
#X obj 82 410 cpole~;
#X obj 58 351 *~;
#X msg 488 421 clear;
#X obj 127 160 loadbang;
#X obj 131 468 rzero~;
#X obj 131 519 czero~;
#X obj 156 545 czero~;
#X obj 131 497 /~;
#X obj 397 257 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
50;
#X obj 59 289 *~;
#X obj 131 446 /~;
#X obj 171 207 samplerate~;
#X obj 171 228 / 2;
#X obj 127 250 / 22050;
#X obj 127 208 f \$1;
#X obj 127 228 t f b;
#X obj 135 181 inlet;
#X obj 397 164 loadbang;
#X obj 405 185 inlet;
#X obj 263 162 loadbang;
#X obj 307 209 samplerate~;
#X obj 307 230 / 2;
#X obj 263 252 / 22050;
#X obj 263 230 t f b;
#X obj 271 183 inlet;
#X obj 58 163 inlet~;
#X obj 488 166 inlet;
#X obj 155 568 outlet~;
#X obj 263 210 f \$2;
#X obj 397 212 f \$3;
#X text 58 142 audio;
#X text 133 140 lp freq;
#X text 263 142 hp freq;
#X text 395 146 hi/lo norm;
#X text 490 143 clear;
#X text 68 10 3-pole \, 3-zero butterworth lp/hp/shelving filter. Args:
lp freq \, hp freq \, normalize-hi. Inlets: input signal \, lo freq
\, hi freq \, hi norm \, reset.;
#X text 70 75 For high-pass: set LP freq =0 and hi/lo to 1;
#X text 70 56 For low-pass: set HP freq >= SR/2 and hi/lo to 0;
#X text 69 92 Shelving: HP and LP specify shelving band. Gain difference
is about HP/LP cubed (so HP=2LP should give about 18 dB \, for example.)
;
#X obj 127 272 buttercoef3;
#X obj 198 429 buttercoef3;
#X connect 0 0 3 0;
#X connect 1 0 2 0;
#X connect 1 1 2 1;
#X connect 2 0 12 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X connect 4 0 1 0;
#X connect 4 0 2 0;
#X connect 4 0 6 0;
#X connect 4 0 7 0;
#X connect 4 0 8 0;
#X connect 5 0 16 0;
#X connect 6 0 9 0;
#X connect 7 0 8 0;
#X connect 7 1 8 1;
#X connect 8 0 29 0;
#X connect 9 0 7 0;
#X connect 10 0 41 1;
#X connect 10 0 42 1;
#X connect 11 0 0 0;
#X connect 12 0 6 0;
#X connect 13 0 14 0;
#X connect 14 0 15 1;
#X connect 15 0 41 0;
#X connect 16 0 17 0;
#X connect 17 0 15 0;
#X connect 17 1 13 0;
#X connect 18 0 16 0;
#X connect 19 0 31 0;
#X connect 20 0 31 0;
#X connect 21 0 30 0;
#X connect 22 0 23 0;
#X connect 23 0 24 1;
#X connect 24 0 42 0;
#X connect 25 0 24 0;
#X connect 25 1 22 0;
#X connect 26 0 30 0;
#X connect 27 0 11 0;
#X connect 28 0 4 0;
#X connect 30 0 25 0;
#X connect 31 0 10 0;
#X connect 41 0 11 1;
#X connect 41 1 3 1;
#X connect 41 2 0 1;
#X connect 41 3 1 2;
#X connect 41 3 2 2;
#X connect 41 4 1 3;
#X connect 41 5 2 3;
#X connect 42 0 12 1;
#X connect 42 1 9 1;
#X connect 42 2 6 1;
#X connect 42 3 7 2;
#X connect 42 3 8 2;
#X connect 42 4 7 3;
#X connect 42 5 8 3;