-
Notifications
You must be signed in to change notification settings - Fork 8
/
WINDOW.pd
265 lines (265 loc) · 12.9 KB
/
WINDOW.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
#N canvas 0 78 1280 686 10;
#X obj 113 171 until;
#N canvas 1 78 450 300 (subpatch) 0;
#X array window_\$1 1027 float 5;
#A 0 2.32458e-06 2.10404e-05 5.84722e-05 0.00011462 0.000189453 0.000283033
0.000395268 0.000526249 0.000675887 0.00084421 0.00103125 0.00123695
0.0014613 0.00170434 0.001966 0.00224632 0.00254527 0.00286281 0.00319898
0.00355375 0.00392708 0.00431901 0.00472948 0.00515845 0.005606 0.00607201
0.00655651 0.00705951 0.00758094 0.00812078 0.00867906 0.00925571 0.00985074
0.0104641 0.0110958 0.0117458 0.012414 0.0131006 0.0138053 0.0145282
0.0152693 0.0160286 0.0168059 0.0176014 0.0184149 0.0192464 0.0200959
0.0209634 0.0218488 0.0227521 0.0236733 0.0246123 0.0255691 0.0265436
0.0275359 0.0285459 0.0295734 0.0306186 0.0316814 0.0327617 0.0338595
0.0349747 0.0361074 0.0372573 0.0384247 0.0396093 0.0408111 0.0420301
0.0432662 0.0445195 0.0457898 0.0470771 0.0483813 0.0497025 0.0510405
0.0523953 0.0537668 0.0551551 0.05656 0.0579815 0.0594195 0.0608741
0.0623451 0.0638324 0.0653361 0.066856 0.0683922 0.0699445 0.0715129
0.0730974 0.0746978 0.0763141 0.0779463 0.0795943 0.0812581 0.0829375
0.0846325 0.086343 0.0880691 0.0898106 0.0915673 0.0933394 0.0951268
0.0969292 0.0987468 0.100579 0.102427 0.104289 0.106167 0.108058 0.109965
0.111886 0.113822 0.115772 0.117737 0.119716 0.121709 0.123716 0.125738
0.127773 0.129822 0.131885 0.133962 0.136053 0.138157 0.140275 0.142406
0.144551 0.146709 0.14888 0.151064 0.153262 0.155472 0.157695 0.159931
0.16218 0.164442 0.166716 0.169002 0.171301 0.173612 0.175936 0.178271
0.180619 0.182978 0.185349 0.187733 0.190127 0.192534 0.194952 0.197381
0.199822 0.202274 0.204737 0.207211 0.209696 0.212192 0.214698 0.217216
0.219744 0.222282 0.224831 0.22739 0.22996 0.232539 0.235129 0.237728
0.240337 0.242956 0.245585 0.248223 0.25087 0.253527 0.256193 0.258868
0.261552 0.264245 0.266947 0.269658 0.272377 0.275105 0.277841 0.280586
0.283338 0.286099 0.288868 0.291645 0.29443 0.297222 0.300022 0.302829
0.305644 0.308466 0.311295 0.314131 0.316974 0.319824 0.322681 0.325544
0.328414 0.331291 0.334173 0.337062 0.339957 0.342858 0.345765 0.348677
0.351596 0.35452 0.357449 0.360383 0.363323 0.366268 0.369218 0.372173
0.375133 0.378097 0.381066 0.384039 0.387017 0.389999 0.392985 0.395975
0.398969 0.401966 0.404968 0.407972 0.410981 0.413993 0.417007 0.420025
0.423046 0.42607 0.429097 0.432126 0.435158 0.438192 0.441229 0.444268
0.447309 0.450352 0.453396 0.456443 0.459491 0.46254 0.465591 0.468644
0.471697 0.474752 0.477807 0.480863 0.48392 0.486978 0.490036 0.493095
0.496153 0.499212 0.502271 0.50533 0.508388 0.511447 0.514505 0.517562
0.520619 0.523675 0.52673 0.529783 0.532836 0.535888 0.538938 0.541987
0.545035 0.54808 0.551124 0.554166 0.557206 0.560244 0.563279 0.566312
0.569343 0.572371 0.575396 0.578419 0.581438 0.584455 0.587468 0.590478
0.593485 0.596488 0.599488 0.602484 0.605476 0.608464 0.611448 0.614428
0.617403 0.620374 0.623341 0.626303 0.62926 0.632213 0.63516 0.638103
0.64104 0.643972 0.646899 0.64982 0.652735 0.655645 0.658549 0.661447
0.664339 0.667225 0.670105 0.672978 0.675845 0.678705 0.681558 0.684405
0.687245 0.690078 0.692904 0.695722 0.698533 0.701337 0.704133 0.706922
0.709702 0.712475 0.71524 0.717997 0.720746 0.723486 0.726219 0.728942
0.731657 0.734364 0.737062 0.73975 0.74243 0.745101 0.747762 0.750415
0.753058 0.755691 0.758315 0.760929 0.763534 0.766128 0.768713 0.771287
0.773852 0.776406 0.77895 0.781483 0.784006 0.786518 0.78902 0.79151
0.79399 0.796459 0.798917 0.801363 0.803798 0.806222 0.808634 0.811035
0.813424 0.815802 0.818168 0.820521 0.822863 0.825193 0.82751 0.829815
0.832108 0.834388 0.836656 0.838912 0.841154 0.843384 0.845601 0.847805
0.849996 0.852174 0.854339 0.856491 0.858629 0.860754 0.862865 0.864962
0.867046 0.869117 0.871173 0.873216 0.875244 0.877259 0.879259 0.881245
0.883217 0.885175 0.887118 0.889047 0.890961 0.892861 0.894745 0.896616
0.898471 0.900311 0.902136 0.903947 0.905742 0.907522 0.909286 0.911036
0.91277 0.914488 0.916191 0.917879 0.919551 0.921207 0.922847 0.924472
0.92608 0.927673 0.92925 0.93081 0.932355 0.933883 0.935395 0.936891
0.93837 0.939833 0.94128 0.94271 0.944123 0.94552 0.9469 0.948264 0.94961
0.95094 0.952253 0.953549 0.954828 0.95609 0.957335 0.958563 0.959774
0.960967 0.962143 0.963302 0.964444 0.965568 0.966675 0.967764 0.968836
0.96989 0.970927 0.971946 0.972947 0.973931 0.974897 0.975845 0.976776
0.977688 0.978583 0.979459 0.980318 0.981159 0.981982 0.982787 0.983573
0.984342 0.985092 0.985825 0.986539 0.987235 0.987912 0.988572 0.989213
0.989836 0.99044 0.991026 0.991594 0.992143 0.992674 0.993187 0.993681
0.994156 0.994613 0.995052 0.995472 0.995873 0.996256 0.996621 0.996966
0.997293 0.997602 0.997892 0.998163 0.998416 0.99865 0.998865 0.999062
0.99924 0.999399 0.99954 0.999661 0.999765 0.999849 0.999915 0.999962
0.99999 1 0.999991 0.999963 0.999917 0.999851 0.999768 0.999665 0.999544
0.999404 0.999245 0.999067 0.998871 0.998657 0.998423 0.998171 0.9979
0.997611 0.997303 0.996976 0.996631 0.996268 0.995885 0.995484 0.995065
0.994627 0.99417 0.993695 0.993202 0.99269 0.99216 0.991611 0.991044
0.990458 0.989854 0.989232 0.988591 0.987932 0.987255 0.98656 0.985846
0.985115 0.984365 0.983597 0.982811 0.982006 0.981184 0.980344 0.979486
0.97861 0.977715 0.976803 0.975874 0.974926 0.973961 0.972977 0.971977
0.970958 0.969922 0.968868 0.967797 0.966708 0.965602 0.964478 0.963337
0.962179 0.961003 0.95981 0.9586 0.957373 0.956128 0.954867 0.953588
0.952293 0.95098 0.949651 0.948305 0.946942 0.945562 0.944166 0.942753
0.941323 0.939877 0.938415 0.936936 0.935441 0.933929 0.932401 0.930857
0.929297 0.927721 0.926129 0.92452 0.922896 0.921257 0.919601 0.91793
0.916243 0.91454 0.912822 0.911088 0.90934 0.907575 0.905796 0.904001
0.902191 0.900366 0.898527 0.896672 0.894802 0.892918 0.891019 0.889105
0.887177 0.885234 0.883277 0.881305 0.87932 0.87732 0.875305 0.873277
0.871235 0.869179 0.867109 0.865026 0.862929 0.860818 0.858693 0.856555
0.854404 0.85224 0.850062 0.847872 0.845668 0.843451 0.841222 0.83898
0.836725 0.834457 0.832177 0.829885 0.82758 0.825263 0.822934 0.820592
0.818239 0.815874 0.813496 0.811108 0.808707 0.806295 0.803872 0.801437
0.798991 0.796533 0.794065 0.791586 0.789095 0.786594 0.784082 0.78156
0.779027 0.776483 0.773929 0.771365 0.768791 0.766207 0.763612 0.761008
0.758394 0.755771 0.753137 0.750495 0.747843 0.745181 0.742511 0.739831
0.737143 0.734445 0.731739 0.729025 0.726301 0.723569 0.720829 0.718081
0.715324 0.712559 0.709786 0.707006 0.704218 0.701421 0.698618 0.695807
0.692989 0.690164 0.687331 0.684491 0.681645 0.678791 0.675932 0.673065
0.670192 0.667313 0.664427 0.661535 0.658637 0.655733 0.652824 0.649908
0.646987 0.644061 0.641129 0.638192 0.63525 0.632302 0.62935 0.626393
0.62343 0.620464 0.617493 0.614518 0.611538 0.608554 0.605566 0.602574
0.599578 0.596579 0.593576 0.590569 0.587559 0.584546 0.58153 0.57851
0.575488 0.572462 0.569435 0.566404 0.563371 0.560336 0.557298 0.554258
0.551216 0.548172 0.545127 0.54208 0.539031 0.53598 0.532929 0.529876
0.526822 0.523767 0.520711 0.517655 0.514597 0.511539 0.508481 0.505422
0.502364 0.499305 0.496246 0.493187 0.490129 0.487071 0.484013 0.480956
0.4779 0.474844 0.47179 0.468736 0.465684 0.462633 0.459583 0.456535
0.453488 0.450444 0.447401 0.44436 0.441321 0.438284 0.43525 0.432218
0.429189 0.426162 0.423138 0.420117 0.417099 0.414084 0.411072 0.408064
0.405059 0.402057 0.399059 0.396065 0.393075 0.390089 0.387107 0.384129
0.381156 0.378187 0.375222 0.372263 0.369308 0.366357 0.363412 0.360472
0.357538 0.354608 0.351684 0.348766 0.345853 0.342946 0.340045 0.33715
0.334261 0.331378 0.328501 0.325631 0.322767 0.319911 0.31706 0.314217
0.311381 0.308551 0.305729 0.302914 0.300106 0.297306 0.294514 0.291729
0.288952 0.286183 0.283422 0.280669 0.277924 0.275188 0.27246 0.26974
0.267029 0.264327 0.261634 0.258949 0.256274 0.253608 0.25095 0.248303
0.245665 0.243035 0.240416 0.237807 0.235207 0.232618 0.230038 0.227468
0.224908 0.222359 0.219821 0.217292 0.214775 0.212268 0.209771 0.207286
0.204811 0.202348 0.199896 0.197455 0.195025 0.192607 0.1902 0.187805
0.185422 0.18305 0.18069 0.178342 0.176006 0.173682 0.171371 0.169071
0.166785 0.16451 0.162249 0.159999 0.157763 0.155539 0.153328 0.151131
0.148946 0.146775 0.144616 0.142471 0.140339 0.138221 0.136117 0.134025
0.131948 0.129884 0.127835 0.125799 0.123777 0.12177 0.119776 0.117797
0.115832 0.113881 0.111945 0.110023 0.108116 0.106224 0.104346 0.102483
0.100635 0.0988021 0.096984 0.0951811 0.0933934 0.0916207 0.0898636
0.0881215 0.086395 0.0846841 0.0829885 0.0813088 0.0796444 0.0779961
0.0763633 0.0747464 0.0731457 0.0715606 0.0699918 0.0684389 0.0669023
0.0653819 0.0638776 0.0623899 0.0609183 0.0594634 0.0580249 0.0566027
0.0551974 0.0538086 0.0524366 0.0510812 0.0497427 0.0484211 0.0471162
0.0458286 0.0445576 0.043304 0.0420673 0.0408477 0.0396454 0.0384602
0.0372925 0.036142 0.0350087 0.033893 0.0327946 0.0317139 0.0306505
0.0296049 0.0285767 0.0275662 0.0265734 0.0255983 0.024641 0.0237015
0.0227797 0.0218759 0.0209899 0.020122 0.0192719 0.0184398 0.0176258
0.0168297 0.0160519 0.015292 0.0145504 0.0138269 0.0131216 0.0124346
0.0117657 0.0111152 0.010483 0.00986904 0.00927347 0.00869623 0.00813743
0.00759697 0.00707504;
#A 1000 0.0065715 0.00608638 0.00561982 0.00517172 0.00474221 0.00433117
0.0039387 0.0035648 0.00320944 0.00287274 0.0025546 0.00225511 0.00197423
0.00171196 0.00146839 0.00124344 0.00103721 0.000849605 0.000680715
0.000530481 0.000398964 0.000286132 0.000192016 0.000116616 5.99027e-05
2.19047e-05 2.6226e-06;
#X coords 0 1 1026 0 280 160 1 0 0;
#X restore 559 200 graph;
#X obj 113 141 t f f f;
#X obj 113 29 inlet;
#X obj 282 22 loadbang;
#X obj 113 214 f;
#X obj 147 214 + 1;
#X obj 227 287 sel 511;
#X msg 227 311 0;
#X obj 273 262 - 1;
#X msg 254 188 resize \$1 \;;
#X floatatom 424 152 5 0 10 0 - - -;
#X obj 113 111 f;
#X obj 424 177 t b f;
#X obj 424 45 inlet;
#X text 111 6 sample number;
#X msg 282 77 0;
#X obj 113 288 list prepend;
#X obj 282 47 t b b;
#X text 536 346 0;
#X text 531 198 +1;
#X text 417 17 window type;
#X obj 38 424 expr 0.5-0.5*cos((2*3.1415*$f1+3.1415)/$f2);
#X obj 304 399 t b f;
#X text 261 443 Hann window;
#X obj 502 398 max 1e-05;
#X obj 314 477 expr 0.54-0.46*cos((2*3.1415*$f1+3.1415)/$f2);
#X text 523 496 Hamming window;
#X obj 594 454 t b f;
#X obj 1050 444 t b f;
#X obj 665 467 expr 0.42323-0.49755*cos((2*3.1415*$f1+3.1415)/$f2)+0.07922*cos((4*3.1415*$f1+2*3.1415/$f2))
;
#X text 932 523 Blackman-Harris window;
#X obj 225 543 t b f;
#X text 219 591 cosine;
#X obj 78 567 expr sin(($f1/$f2)*3.1415);
#X obj 578 559 t b f;
#X text 512 612 rectangular;
#X obj 1058 564 t b f;
#X text 914 629 triangular;
#X obj 673 586 expr if($f1>=0 && $f1<=($f2/2) \, (2*$f1/$f2) \, (2-(2*$f1/$f2))
);
#X obj 113 80 + 3;
#X msg 314 77 1024;
#X obj 368 585 expr if($f1>0 && $f1<($f2-2) \, 1 \, 0);
#X text 538 52 window type \; ----------------- \; 0=Hann \; 1=Hamming
\; 2=Blackman-Harris \; 3=cosine \; 4=rectangular \; 5=triangular \;
6=trapezoid \;;
#X obj 113 355 route 0 1 2 3 4 5;
#X obj 502 420 t f f f f f f;
#X msg 52 41 1024;
#X obj 113 248 t f f f;
#X obj 78 626 tabwrite window_\$1;
#X obj 254 208 s window_\$1;
#X text 901 39 Copyright 2019-2020 Focusrite Audio Engineering Limited.
;
#X text 932 161 http://www.apache.org/licenses/LICENSE-2.0;
#X text 902 69 Licensed under the Apache License \, Version 2 (the
"License") \; you may not use this file except in compliance with the
License.;
#X text 902 126 You may obtain a copy of the License at;
#X text 902 191 Unless required by applicable law or agreed to in writing
\, software distributed under the License is distributed on an "AS
IS" BASIS \, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND \, either
express or implied.;
#X text 902 247 See the License for the specific language governing
permissions and limitations under the License.;
#X connect 0 0 5 0;
#X connect 2 0 0 0;
#X connect 2 1 25 0;
#X connect 2 2 10 0;
#X connect 2 2 9 0;
#X connect 3 0 40 0;
#X connect 4 0 18 0;
#X connect 5 0 6 0;
#X connect 5 0 47 0;
#X connect 6 0 5 1;
#X connect 7 0 8 0;
#X connect 8 0 5 1;
#X connect 9 0 7 1;
#X connect 10 0 49 0;
#X connect 11 0 13 0;
#X connect 12 0 2 0;
#X connect 13 0 12 0;
#X connect 13 1 17 1;
#X connect 14 0 11 0;
#X connect 16 0 11 0;
#X connect 17 0 44 0;
#X connect 18 0 16 0;
#X connect 18 1 41 0;
#X connect 22 0 48 0;
#X connect 23 0 22 0;
#X connect 23 1 22 1;
#X connect 25 0 45 0;
#X connect 26 0 48 0;
#X connect 28 0 26 0;
#X connect 28 1 26 1;
#X connect 29 0 30 0;
#X connect 29 1 30 1;
#X connect 30 0 48 0;
#X connect 32 0 34 0;
#X connect 32 1 34 1;
#X connect 34 0 48 0;
#X connect 35 0 42 0;
#X connect 35 1 42 1;
#X connect 37 0 39 0;
#X connect 37 1 39 1;
#X connect 39 0 48 0;
#X connect 40 0 12 0;
#X connect 41 0 40 0;
#X connect 42 0 48 0;
#X connect 44 0 22 0;
#X connect 44 1 26 0;
#X connect 44 2 30 0;
#X connect 44 3 34 0;
#X connect 44 4 42 0;
#X connect 44 5 39 0;
#X connect 45 0 23 0;
#X connect 45 1 32 0;
#X connect 45 2 35 0;
#X connect 45 3 28 0;
#X connect 45 4 37 0;
#X connect 45 5 29 0;
#X connect 46 0 40 0;
#X connect 47 0 17 0;
#X connect 47 1 7 0;
#X connect 47 2 48 1;