-
Notifications
You must be signed in to change notification settings - Fork 4
/
+morphfilter-help.pd
278 lines (278 loc) · 14.1 KB
/
+morphfilter-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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
#N canvas 116 156 862 527 10;
#N canvas 0 22 450 300 (subpatch) 0;
#X array mf-array-1 513 float 3;
#A 0 -5.87788 -11.9364 -21.8766 -23.5435 -23.7777 -23.8237 -23.8722
-23.614 -21.8576 -22.9005 -23.8695 -23.7096 -22.9851 -23.5248 -23.9469
-23.959 -23.9557 -23.9155 -23.8673 -23.6169 -18.1013 -18.5256 -23.7738
-23.9486 -23.959 -23.9565 -23.9075 -23.7853 -23.7275 -23.4189 -1.94036
4.09063 -7.44464 -21.7283 -7.45054 -6.09576 -19.0821 -22.8658 -21.7849
-23.2901 -23.695 -18.3183 -8.42143 -12.4491 -23.122 -23.552 -23.7649
-23.5381 -22.1844 -23.2912 -23.8699 -23.8708 -23.8639 -23.8993 -23.888
-23.4884 -22.1065 -23.2374 -23.7414 -23.8515 -21.9065 15.8235 24 14.5823
-21.7485 -22.7376 -9.29651 2.74789 -2.03519 -20.24 -23.3537 -23.411
-10.6862 1.52783 -2.92501 -21.6112 -23.6567 -23.6954 -23.8154 -23.8178
-23.8005 -23.7267 -23.6579 -23.5349 -23.2623 -23.0119 -22.1839 -22.0181
-22.8846 -21.1864 -13.5537 -12.7691 -21.1094 -21.9481 -20.2804 -21.0923
-23.2593 -23.215 -22.9507 -23.1261 -23.0949 -22.8673 -22.7498 -23.1451
-22.5925 -13.5163 6.47192 8.56836 -5.22951 -19.6069 -12.1326 12.148
16.3673 3.61327 14.9016 17.8704 5.89771 -11.4862 -21.9876 -22.1833
-22.2448 -22.8424 -22.8569 -22.2205 -21.3304 -21.8791 -22.6299 -22.0486
-18.0105 -18.6877 -22.5347 -19.6782 -15.7253 -20.6987 -22.9709 -23.1743
-23.04 -22.3617 -22.4296 -23.2854 -23.4989 -23.1204 -23.0236 -22.9882
-23.0842 -22.7007 -22.8908 -22.915 -22.8178 -22.6693 -22.8359 -22.2599
-22.0501 -21.6298 -11.9772 4.18428 5.79694 -5.70396 -15.6788 -9.67028
0.315891 13.0296 13.2699 1.59452 -11.7861 -15.4936 -17.9322 -19.3635
-20.0229 -21.9689 -20.8371 -19.9646 -15.369 -2.77843 5.28933 12.6051
5.55332 -14.8453 -21.4796 -20.558 -21.1563 -22.3283 -22.2788 -23.0227
-23.3039 -22.0649 -22.6585 -22.6243 -19.4957 -18.6249 -22.3899 -23.4004
-22.0599 -21.6393 -12.4812 -2.72641 -8.90173 -21.7004 -22.9313 -22.1676
-22.5913 -23.4199 -23.5295 -22.7186 -15.7902 2.54909 5.72137 -3.30069
-13.7829 -21.8119 -20.3375 -21.3464 -22.9628 -22.8203 -22.2103 -21.9174
-21.7511 -22.4636 -23.1377 -22.3441 -19.7188 -18.1235 -19.7067 -13.5693
2.10088 12.8125 11.5248 7.38068 -8.32615 -18.475 -21.0015 -21.3432
-23.3922 -23.4263 -23.4904 -22.9663 -22.8859 -23.6737 -23.6695 -23.2086
-23.1197 -22.1643 -16.4715 -11.2834 -14.5749 -22.7455 -23.6356 -23.7989
-23.8231 -23.7152 -23.625 -23.6374 -23.6802 -23.6893 -23.8688 -23.9037
-23.8452 -23.7523 -23.6396 -23.1793 -21.8102 -13.0419 -0.293261 -2.37148
-17.8277 -23.1548 -23.6015 -23.4845 -23.4967 -23.701 -23.8967 -23.8395
-23.7827 -23.8243 -23.6635 -23.438 -23.6132 -23.8684 -23.7212 -20.9937
-19.5691 -17.2979 -17.5515 -23.2439 -23.7685 -23.65 -22.5887 -22.2851
-22.8088 -23.4619 -23.1254 -22.9478 -23.2188 -23.4103 -22.4496 -18.6727
-5.82256 1.75358 -3.52412 -15.3467 -20.5343 -22.5673 -23.2162 -23.524
-23.727 -23.746 -23.8159 -23.9016 -23.9016 -22.489 -19.4593 -22.1433
-22.9742 -20.1655 -20.7572 -23.5638 -23.8962 -23.6849 -23.6067 -17.3347
-6.69728 -8.21338 -15.5724 -18.1943 -20.9735 -23.438 -23.8551 -23.6351
-23.5342 -23.8914 -23.9539 -23.9367 -23.9228 -23.7776 -23.6771 -23.8797
-23.9629 -23.9729 -23.9153 -23.7638 -23.2844 -23.7822 -23.9193 -23.9317
-23.9467 -23.828 -23.242 -14.5079 -11.4411 -18.3719 -21.7394 -23.2191
-23.7994 -23.9425 -23.9267 -23.9299 -23.9272 -23.8765 -23.8087 -23.906
-23.9097 -23.9047 -23.9521 -23.9313 -23.8936 -23.857 -23.7333 -23.8254
-23.7811 -23.8718 -23.9128 -23.8783 -23.3662 -18.4481 -17.4532 -17.7379
-7.36377 -5.61863 -2.71434 -5.21222 -13.8444 -17.521 -19.9384 -22.0275
-23.4954 -23.7867 -23.3403 -22.1652 -21.8683 -23.6304 -23.9264 -23.8857
-23.8124 -23.8733 -23.8832 -23.9058 -23.9039 -23.9044 -23.944 -23.9821
-23.9834 -23.9788 -23.9185 -23.868 -23.9411 -23.9622 -23.5857 -22.41
-23.3712 -23.8576 -23.9542 -23.9714 -23.9791 -23.9791 -23.962 -23.9509
-23.9741 -23.9851 -23.9825 -23.9893 -23.9852 -23.9826 -23.9864 -23.9604
-23.9637 -23.7456 -20.4723 -17.7679 -22.5019 -22.3834 -18.2225 -20.8949
-23.8256 -23.9396 -23.9163 -23.962 -23.9758 -23.9835 -23.9884 -23.9863
-23.9878 -23.9907 -23.9871 -23.9903 -23.9844 -23.7932 -23.6616 -23.3345
-21.1979 -23.1426 -23.9711 -23.9758 -23.9866 -23.984 -23.9862 -23.981
-23.9594 -23.9134 -23.8547 -23.0552 -20.1733 -21.3964 -22.2909 -22.8191
-19.2877 -17.6309 -21.1643 -23.9088 -23.9458 -23.9701 -23.9883 -23.9917
-23.9713 -23.8211 -23.7579 -23.9714 -23.9956 -23.9904 -23.9798 -23.9927
-23.9916 -23.9654 -23.9651 -23.9814 -23.9949 -23.9962 -23.9961 -23.9962
-23.996 -23.9883 -23.95 -23.9697 -23.9905 -23.996 -23.9945 -23.9947
-23.9964 -23.9961 -23.9963 -23.9962 -23.9963 -23.9957 -23.9958 -23.9964
-23.9963 -23.9964 -23.9965 -23.9961 -23.9947 -23.9955 -23.9919 -23.9903
-24;
#X coords 0 24 513 -24 200 140 1;
#X restore 73 12 graph;
#N canvas 0 22 450 300 (subpatch) 0;
#X array mf-array-2 513 float 3;
#A 0 -0.633266 4.2475 1.71274 -0.0239182 6.04528 0.374723 -2.30594
12.861 19.3245 21.1203 24 17.8588 2.45111 -7.22583 -0.517307 4.92652
-0.337313 -2.65182 2.24265 6.4194 5.28822 -0.969288 -5.06439 -8.13137
-13.0446 -13.1981 -9.59687 -6.6677 -7.36953 -6.39168 -6.95314 -11.6586
-14.7541 -15.5606 -16.8331 -17.1319 -14.9943 -13.6279 -13.7044 -12.3612
-11.4338 -14.6965 -15.9762 -16.5989 -12.6554 -11.4765 -16.4369 -18.7584
-20.1439 -20.8569 -20.8798 -20.9904 -20.8556 -20.4955 -18.0982 -9.83551
-5.41119 -12.6262 -18.6903 -16.2323 -15.5827 -18.1424 -19.078 -17.6195
-18.1589 -19.4173 -19.3891 -19.9953 -20.402 -21.3436 -21.7754 -21.5065
-22.107 -22.644 -22.262 -21.8332 -22.3475 -21.3174 -21.3598 -21.4567
-21.0666 -20.2901 -20.5868 -20.9635 -20.7461 -20.449 -19.258 -18.2571
-19.0351 -20.3309 -20.122 -21.7374 -22.5607 -22.7617 -22.8539 -22.8808
-22.6379 -22.3524 -22.3112 -22.576 -22.4653 -22.29 -21.8706 -21.394
-21.0236 -20.738 -21.2115 -20.5919 -20.2477 -20.213 -19.4778 -18.5284
-18.9245 -20.0627 -19.1564 -19.4603 -19.9894 -20.0066 -20.1941 -21.5331
-21.9663 -22.0177 -21.8801 -22.153 -21.9015 -22.1571 -22.3391 -22.6782
-22.1727 -22.545 -22.6352 -23.1945 -23.1048 -23.3343 -23.3034 -23.5155
-23.6267 -23.5041 -23.4661 -23.3718 -23.2202 -22.8862 -22.9024 -22.5855
-22.3579 -22.3735 -22.4294 -22.4005 -22.6877 -22.867 -22.5629 -22.6919
-22.6678 -22.9108 -22.7402 -22.6426 -22.8283 -22.913 -22.9917 -22.7819
-22.5001 -22.1222 -22.2987 -22.6953 -22.995 -23.1993 -23.2583 -23.2377
-23.1599 -23.3348 -23.4462 -23.4655 -23.6628 -23.6098 -23.6083 -23.6003
-23.4151 -23.515 -23.5107 -23.6868 -23.6614 -23.6693 -23.7612 -23.7827
-23.77 -23.749 -23.768 -23.8231 -23.8209 -23.8493 -23.8783 -23.852
-23.8109 -23.8589 -23.8477 -23.8684 -23.8811 -23.87 -23.7633 -23.7599
-23.8168 -23.8624 -23.8915 -23.9026 -23.8997 -23.8912 -23.8619 -23.867
-23.8335 -23.8081 -23.8722 -23.86 -23.8781 -23.8627 -23.8637 -23.8574
-23.8605 -23.874 -23.8861 -23.8926 -23.9012 -23.865 -23.8351 -23.8958
-23.9187 -23.9055 -23.9025 -23.9214 -23.9357 -23.9226 -23.9151 -23.9018
-23.9115 -23.9123 -23.8924 -23.8469 -23.8798 -23.8893 -23.9075 -23.9086
-23.853 -23.8632 -23.8677 -23.8131 -23.7883 -23.806 -23.7799 -23.7684
-23.6713 -23.7197 -23.8308 -23.779 -23.7504 -23.7853 -23.8066 -23.8057
-23.7791 -23.8552 -23.8491 -23.8547 -23.8218 -23.7701 -23.695 -23.7888
-23.8202 -23.8344 -23.7799 -23.7798 -23.7915 -23.8413 -23.8184 -23.7799
-23.7783 -23.7715 -23.7755 -23.7608 -23.7517 -23.7773 -23.7848 -23.8374
-23.7834 -23.7178 -23.7398 -23.7677 -23.8057 -23.7873 -23.8078 -23.8688
-23.8267 -23.8081 -23.7908 -23.7284 -23.7046 -23.7763 -23.7215 -23.7205
-23.7323 -23.6866 -23.6672 -23.734 -23.6921 -23.6814 -23.7354 -23.781
-23.6838 -23.6246 -23.6446 -23.7296 -23.6861 -23.6895 -23.7315 -23.7041
-23.7026 -23.7045 -23.7127 -23.7115 -23.7059 -23.5798 -23.6332 -23.7319
-23.7493 -23.7245 -23.7972 -23.8209 -23.8543 -23.8903 -23.9037 -23.902
-23.9237 -23.9316 -23.9315 -23.9298 -23.9404 -23.9493 -23.941 -23.9306
-23.9194 -23.9149 -23.9201 -23.8988 -23.8403 -23.8414 -23.8546 -23.8846
-23.8524 -23.8514 -23.8894 -23.9 -23.9223 -23.889 -23.8268 -23.8846
-23.9237 -23.8823 -23.8856 -23.913 -23.9465 -23.9393 -23.9129 -23.9025
-23.9104 -23.925 -23.9232 -23.9309 -23.938 -23.9427 -23.9474 -23.9483
-23.9391 -23.9481 -23.9478 -23.9418 -23.9436 -23.9307 -23.9292 -23.9496
-23.9432 -23.9493 -23.9424 -23.9539 -23.9418 -23.9576 -23.9416 -23.9182
-23.892 -23.9613 -23.957 -23.9573 -23.9589 -23.9534 -23.9546 -23.9546
-23.9327 -23.8898 -23.9349 -23.9408 -23.9223 -23.9607 -23.9631 -23.9541
-23.9717 -23.9606 -23.9366 -23.9489 -23.9614 -23.9689 -23.9779 -23.9801
-23.9777 -23.9763 -23.9789 -23.9767 -23.9746 -23.9832 -23.9872 -23.9847
-23.9871 -23.986 -23.988 -23.9882 -23.9866 -23.9833 -23.9832 -23.9836
-23.9875 -23.9874 -23.9893 -23.9918 -23.9919 -23.9913 -23.9914 -23.9897
-23.9907 -23.9874 -23.9848 -23.9841 -23.9808 -23.9754 -23.9688 -23.9688
-23.9708 -23.9731 -23.9754 -23.9808 -23.985 -23.9848 -23.9831 -23.9759
-23.9688 -23.968 -23.961 -23.957 -23.9618 -23.9591 -23.9632 -23.9615
-23.966 -23.9679 -23.9605 -23.9587 -23.9618 -23.9655 -23.967 -23.9674
-23.9639 -23.975 -23.9724 -23.9707 -23.9587 -23.9515 -23.9476 -23.9399
-23.9444 -23.956 -23.9651 -23.9734 -23.9798 -23.9846 -23.9879 -23.9898
-23.9893 -23.9908 -23.9909 -23.9894 -23.9902 -23.9919 -23.9932 -23.9927
-23.993 -23.9927 -23.9929 -23.9913 -23.9915 -23.9903 -23.9899 -23.9912
-23.9905 -23.9925 -23.9924 -23.9908 -23.9921 -23.9917 -23.9904 -23.9907
-23.9925 -23.9918 -23.9925 -23.9927 -23.9919 -23.9922 -23.9929 -23.9917
-24;
#X coords 0 24 513 -24 200 140 1;
#X restore 285 12 graph;
#X obj 567 235 dac~;
#X obj 585 160 dbtorms~;
#X obj 567 185 *~;
#X obj 567 -16 bng 15 250 50 0 morph_openfile empty open-soundfile
17 7 0 12 -4034 -1 -1;
#N canvas 623 78 657 507 morph_soundfile 0;
#N canvas 0 22 450 300 (subpatch) 0;
#X array morph_soundfile 250904 float 2;
#X coords 0 1 250904 -1 200 140 1;
#X restore 34 31 graph;
#X obj 281 33 openpanel;
#X obj 281 96 soundfiler;
#X obj 281 171 phasor~ 0.5;
#X obj 281 198 *~;
#X obj 451 413 /;
#X obj 451 348 t b f;
#X obj 451 371 samplerate~;
#X obj 281 288 outlet~;
#X obj 281 11 r morph_openfile;
#X msg 281 64 read -resize -maxsize 2e+06 \$1 morph_soundfile;
#X obj 281 121 s morph_filelength;
#X obj 281 146 r morph_phasorfreq;
#X obj 451 320 r morph_filelength;
#X obj 451 440 s morph_phasorfreq;
#X obj 322 198 r morph_filelength;
#X obj 281 231 tabread~ morph_soundfile;
#X connect 1 0 10 0;
#X connect 2 0 11 0;
#X connect 3 0 4 0;
#X connect 4 0 16 0;
#X connect 5 0 14 0;
#X connect 6 0 7 0;
#X connect 6 1 5 1;
#X connect 7 0 5 0;
#X connect 9 0 1 0;
#X connect 10 0 2 0;
#X connect 12 0 3 0;
#X connect 13 0 6 0;
#X connect 15 0 4 1;
#X connect 16 0 8 0;
#X restore 567 8 pd morph_soundfile;
#X obj 588 139 hsl 128 15 0 100 0 0 empty mf-volume-set volume -2 -8
0 12 -262144 -1 -1 12700 1;
#X msg 186 312 depth \$1;
#X msg 69 293 learn \$1;
#X msg 525 312 morph \$1;
#X msg 354 312 tilt \$1;
#X obj 69 273 tgl 15 0 empty mf-learn-set empty 17 7 0 10 -262144 -1
-1 0 1;
#X obj 189 292 hsl 128 15 -2 2 0 0 empty mf-depth-set empty -2 -8 0
10 -228856 -1 -1 3325 1;
#X obj 528 292 hsl 128 15 0 1 0 0 empty mf-morph-set empty -2 -8 0
10 -228856 -1 -1 7400 1;
#X obj 357 292 hsl 128 15 -3 3 0 1 empty mf-tilt-set empty -2 -8 0
10 -228856 -1 -1 3550 1;
#N canvas 724 77 551 303 init 0;
#X obj 37 18 loadbang;
#X msg 57 239 \; pd dsp 1 \;;
#X msg 75 184 80;
#X msg 155 130 0;
#X msg 114 156 1;
#X msg 194 102 0;
#X obj 75 205 s mf-volume-set;
#X obj 114 177 s mf-depth-set;
#X obj 155 151 s mf-tilt-set;
#X obj 194 123 s mf-morph-set;
#X obj 37 39 t b b b b b b;
#X msg 217 44 \; mf-array-1 ylabel -40 -24 0 24 \;;
#X connect 0 0 10 0;
#X connect 2 0 6 0;
#X connect 3 0 8 0;
#X connect 4 0 7 0;
#X connect 5 0 9 0;
#X connect 10 0 1 0;
#X connect 10 1 2 0;
#X connect 10 2 4 0;
#X connect 10 3 3 0;
#X connect 10 4 5 0;
#X connect 10 5 11 0;
#X restore 760 -84 pd init;
#X obj 26 328 s morph;
#X obj 578 55 r morph;
#X obj 22 -105 cnv 15 500 80 empty empty empty 20 12 0 14 -228856 -66577
0;
#X text 25 -132 +morphfilter~;
#N canvas 353 74 961 310 morphfilter-details 0;
#X text 32 29 spectral display - To use the +morphfilter \, you must
first draw a filter shape in the spectral display. This curve will
be used by the filter depth setting to create the actual filter.;
#X text 492 99 makeupgain - A gain control to compensate for the natural
gain or loss in a given filter shape. It is better to have this control
automatically controlled by the autogain function if you are dynamically
changing the filter number and depth.;
#X text 492 179 learn - This will capture the average of the current
sounds frequency spectrum. Unlike the learn buttons in both +spectralcompand~
and +spectralgate~ \, this switch is not momentary \, but remains on
\, adding more sound to the spectral average until it is turned off.
;
#X text 32 89 filter depth - This changes the depth or strength of
the filter. At 0 you get no filtering (a flat line). As you proceed
to 1 \, you get closer to the filter specified by the filter shape.
When you put this control in the negative region (0.0 to -2.0) \, you
get an inversion of the filter shape. This control goes from -2 to
2.0. While changing filter depth \, it is good to have autogain switched
on \, as certain filter depths can have much more gain than others.
;
#X text 492 39 tilt - This tilts the frequency response to boost highs
and cut lows \, or boost lows and cut highs. The range of tilt is from
-3 dB/octave to +3.0 dB/octave.;
#X text 32 199 morph - This control lets you morph between the two
stored filter shapes \, filter 0 and filter 1.. Changing the morph
value will cause a smooth fade between the shapes. If you are drawing
or learning a new shape \, you will write to the first table when the
control is below 0.5 and the second when the control is above 0.5.
;
#X restore 655 -105 pd morphfilter-details;
#X text 27 -100 +morphfilter~ is a basic filter in which you can draw
or learn a filter shape. Draw two filter shapes in Pd arrays to morph
between. Filter depth can be applied to increase \, decrease or even
invert the filter shape. This is an easily controllable \, yet complex
\, filter object.;
#X msg 26 237 set mf-array-1 mf-array-2;
#X obj 567 82 +morphfilter~ mf-array-1 mf-array-2;
#X connect 3 0 4 1;
#X connect 4 0 2 1;
#X connect 4 0 2 0;
#X connect 6 0 24 0;
#X connect 7 0 3 0;
#X connect 8 0 17 0;
#X connect 9 0 17 0;
#X connect 10 0 17 0;
#X connect 11 0 17 0;
#X connect 12 0 9 0;
#X connect 13 0 8 0;
#X connect 14 0 10 0;
#X connect 15 0 11 0;
#X connect 18 0 24 0;
#X connect 23 0 17 0;
#X connect 24 0 4 0;