-
Notifications
You must be signed in to change notification settings - Fork 13
/
filtercoeff.mmb~-help.pd
198 lines (198 loc) · 5.22 KB
/
filtercoeff.mmb~-help.pd
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
#N canvas 61 22 1169 774 10;
#X obj 25 12 cnv 15 400 35 empty empty filtercoeff.mmb~ 20 12 0 14
-4160 -203904 0;
#X obj 25 48 cnv 15 400 40 empty empty empty 20 12 0 14 -203904 -66577
0;
#X obj 39 276 hsl 128 15 0 136 0 1 empty empty empty -2 -8 0 10 -262144
-1 -1 5976 1;
#X text 71 259 frequency;
#X obj 201 197 + 100;
#X obj 201 221 dbtorms;
#N canvas 0 22 450 300 (subpatch) 0;
#X array \$0-spectrum 512 float 0;
#X coords 0 1 512 0 400 140 1;
#X restore 638 424 graph;
#X text 1046 614 .mmb;
#X obj 76 551 biquad.mmb~;
#X text 656 614 See also:;
#X obj 659 642 biquadm.mmb~;
#X obj 659 668 biquad~;
#X obj 749 642 filtercoeff.mmb;
#X obj 859 642 lop.mmb~;
#X obj 859 668 hip.mmb~;
#X obj 919 668 multimode.mmb~;
#X obj 919 642 multimode.mmb;
#X obj 1019 642 filterplot.mmb;
#X msg 432 429 lowpass;
#X msg 432 449 highpass;
#X msg 432 549 lowshelf;
#X msg 432 569 highshelf;
#X msg 432 469 bandpass;
#X msg 432 489 resonant;
#X msg 432 509 notch;
#X msg 432 529 peaking;
#X msg 432 589 allpass;
#X msg 131 414 \$1 100;
#X obj 131 438 line~;
#X msg 201 414 \$1 100;
#X obj 201 438 line~;
#X obj 152 487 filtercoeff.mmb~ lowpass;
#X floatatom 201 250 5 0 0 0 - - -;
#X text 251 242 Q - refers to resonance for lowpass \, highpass \,
and resonant. Refers to bandwidth for bandpass \, notch \, peaking
\, and allpass. Refers to slope for highshelf and lowshelf.;
#X text 265 161 The gain of the resonance is equal to Q. By convention
\, -3dB means no resonance for lowpass and highpass.;
#X text 45 48 Generates audio-rate biquad coefficients for several
filter types and accepts parameters as audio signals.;
#X text 425 408 filter types;
#X text 471 49 [filtercoeff.mmb~ filtertype];
#X text 499 65 arg1: <optional> type of filter to generate coefficients
for (default: lowpass).;
#X obj 201 168 nbx 5 14 -1e+37 1e+37 0 1 empty empty empty 0 -8 0 10
-262144 -1 -1 -3 256;
#X obj 261 342 nbx 5 14 -1e+37 1e+37 0 1 empty empty empty 0 -8 0 10
-262144 -1 -1 0 256;
#X obj 76 695 *~ 0.2;
#X obj 76 725 dac~;
#X text 324 341 Gain (in dB) for peaking \, lowshelf \, and highshelf
;
#N canvas 83 23 806 550 filterplot 0;
#X obj 252 41 inlet~;
#X obj 252 165 snapshot~;
#X obj 322 41 inlet~;
#X obj 322 165 snapshot~;
#X obj 392 41 inlet~;
#X obj 392 165 snapshot~;
#X obj 462 41 inlet~;
#X obj 462 165 snapshot~;
#X obj 532 41 inlet~;
#X obj 532 165 snapshot~;
#X obj 252 207 change;
#X obj 322 200 change;
#X obj 392 200 change;
#X obj 462 200 change;
#X obj 532 200 change;
#X obj 252 235 t f b;
#X obj 322 228 t f b;
#X obj 392 228 t f b;
#X obj 462 228 t f b;
#X obj 532 228 t f b;
#X obj 252 297 pack f f f f f;
#X obj 252 393 spigot;
#X obj 237 264 f;
#X msg 296 363 1;
#X obj 86 76 metro 200;
#X obj 86 102 t b b;
#X obj 252 418 t l b;
#X msg 310 412 0;
#X obj 252 458 filterplot.mmb \$0-filter.response;
#X obj 692 41 inlet;
#X msg 650 252 phase \$1;
#X obj 133 19 r pd;
#X obj 133 41 route dsp;
#X obj 36 25 loadbang;
#X connect 0 0 1 0;
#X connect 1 0 10 0;
#X connect 2 0 3 0;
#X connect 3 0 11 0;
#X connect 4 0 5 0;
#X connect 5 0 12 0;
#X connect 6 0 7 0;
#X connect 7 0 13 0;
#X connect 8 0 9 0;
#X connect 9 0 14 0;
#X connect 10 0 15 0;
#X connect 11 0 16 0;
#X connect 12 0 17 0;
#X connect 13 0 18 0;
#X connect 14 0 19 0;
#X connect 15 0 22 1;
#X connect 15 1 23 0;
#X connect 16 0 20 1;
#X connect 16 1 23 0;
#X connect 17 0 20 2;
#X connect 17 1 23 0;
#X connect 18 0 20 3;
#X connect 18 1 23 0;
#X connect 19 0 20 4;
#X connect 19 1 23 0;
#X connect 20 0 21 0;
#X connect 21 0 26 0;
#X connect 22 0 20 0;
#X connect 23 0 21 1;
#X connect 24 0 25 0;
#X connect 25 0 22 0;
#X connect 25 1 9 0;
#X connect 25 1 7 0;
#X connect 25 1 5 0;
#X connect 25 1 3 0;
#X connect 25 1 1 0;
#X connect 26 0 28 0;
#X connect 26 1 27 0;
#X connect 27 0 21 1;
#X connect 29 0 30 0;
#X connect 30 0 28 1;
#X connect 31 0 32 0;
#X connect 32 0 24 0;
#X connect 33 0 24 0;
#X restore 170 605 pd filterplot;
#N canvas 0 22 450 300 (subpatch) 0;
#X array \$0-filter.response 400 float 0;
#X coords 0 1 399 -1 400 140 1;
#X restore 638 243 graph;
#X obj 262 607 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 282 606 plot phase response;
#X obj 133 697 spectrum.mmb~ \$0-spectrum;
#X msg 300 696 logfreq 1 \, dbrange -25 25;
#X obj 70 317 mtof;
#X floatatom 52 363 5 0 0 0 - - -;
#X obj 128 668 *~ 39;
#X obj 300 666 loadbang;
#X msg 251 414 \$1 100;
#X obj 251 438 line~;
#X obj 76 500 noise~;
#X obj 749 668 biquad.mmb~;
#X connect 2 0 50 0;
#X connect 4 0 5 0;
#X connect 5 0 32 0;
#X connect 8 0 41 0;
#X connect 8 0 52 0;
#X connect 18 0 31 3;
#X connect 19 0 31 3;
#X connect 20 0 31 3;
#X connect 21 0 31 3;
#X connect 22 0 31 3;
#X connect 23 0 31 3;
#X connect 24 0 31 3;
#X connect 25 0 31 3;
#X connect 26 0 31 3;
#X connect 27 0 28 0;
#X connect 28 0 31 0;
#X connect 29 0 30 0;
#X connect 30 0 31 1;
#X connect 31 0 8 1;
#X connect 31 0 44 0;
#X connect 31 1 8 2;
#X connect 31 1 44 1;
#X connect 31 2 8 3;
#X connect 31 2 44 2;
#X connect 31 3 8 4;
#X connect 31 3 44 3;
#X connect 31 4 8 5;
#X connect 31 4 44 4;
#X connect 32 0 29 0;
#X connect 39 0 4 0;
#X connect 40 0 54 0;
#X connect 41 0 42 0;
#X connect 41 0 42 1;
#X connect 46 0 44 5;
#X connect 49 0 48 1;
#X connect 50 0 27 0;
#X connect 50 0 51 0;
#X connect 52 0 48 0;
#X connect 53 0 49 0;
#X connect 54 0 55 0;
#X connect 55 0 31 2;
#X connect 56 0 8 0;