H02.high-pass.pd 10.7 KB
Newer Older
1
#N canvas 394 40 504 516 10;
2 3 4
#X obj 22 429 output~;
#X obj 110 410 metro 250;
#X obj 110 390 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
Miller Puckette's avatar
Miller Puckette committed
5
1;
6
#X text 128 387 graphing on/off;
Miller Puckette's avatar
Miller Puckette committed
7
#N canvas 0 0 450 300 (subpatch) 0;
8
#X array H02-graph 882 float 3 black black;
Miller Puckette's avatar
Miller Puckette committed
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
#A 0 0.86084 0.876465 0.891113 0.904785 0.917725 0.929688 0.940918
0.950928 0.960205 0.968506 0.97583 0.982178 0.987793 0.992188 0.995605
0.998047 0.999512 1 0.999756 0.998291 0.99585 0.992432 0.988037 0.982666
0.976318 0.968994 0.960938 0.95166 0.94165 0.930664 0.918701 0.905762
0.89209 0.877441 0.862061 0.845703 0.828613 0.810547 0.791748 0.772217
0.751953 0.730957 0.709229 0.686768 0.663574 0.639893 0.615479 0.590576
0.564941 0.538818 0.511963 0.484863 0.457275 0.429199 0.400635 0.371826
0.342529 0.312744 0.282959 0.252686 0.222168 0.19165 0.160645 0.129639
0.0986328 0.0673828 0.0358887 0.00463867 -0.0266113 -0.0581055 -0.0893555
-0.120361 -0.151611 -0.182373 -0.213135 -0.243652 -0.273926 -0.303955
-0.33374 -0.363037 -0.39209 -0.420654 -0.448975 -0.476807 -0.50415
-0.530762 -0.557129 -0.583008 -0.608154 -0.632568 -0.656738 -0.679932
-0.702637 -0.724609 -0.74585 -0.766357 -0.786133 -0.805176 -0.823242
-0.840576 -0.857178 -0.873047 -0.887939 -0.901855 -0.915039 -0.927246
-0.938477 -0.94873 -0.958252 -0.966797 -0.974365 -0.980957 -0.986572
-0.991211 -0.994873 -0.997559 -0.999268 -1 -0.999756 -0.998535 -0.996338
-0.993164 -0.989014 -0.983887 -0.977783 -0.970947 -0.962891 -0.953857
-0.944092 -0.933105 -0.921387 -0.908936 -0.895264 -0.880859 -0.865479
-0.849365 -0.83252 -0.814697 -0.796143 -0.776855 -0.756592 -0.73584
-0.714111 -0.691895 -0.668945 -0.645264 -0.621094 -0.596191 -0.570801
-0.544678 -0.518066 -0.491211 -0.463623 -0.435547 -0.407227 -0.378418
-0.349121 -0.31958 -0.289795 -0.259521 -0.229248 -0.198486 -0.167725
-0.136719 -0.105713 -0.0744629 -0.0432129 -0.0117188 0.0195312 0.0507812
0.0822754 0.113281 0.144531 0.175293 0.206055 0.236816 0.26709 0.297119
0.326904 0.356445 0.385498 0.414307 0.442627 0.470459 0.497803 0.524902
0.55127 0.577148 0.602539 0.627197 0.651367 0.674805 0.69751 0.719727
0.740967 0.761719 0.781738 0.800781 0.819336 0.836914 0.853516 0.869385
0.884521 0.898682 0.912109 0.924561 0.936035 0.946533 0.956299 0.964844
0.972656 0.979492 0.985352 0.990234 0.994141 0.99707 0.999023 1 1 0.999023
0.99707 0.994141 0.990234 0.985352 0.979248 0.972412 0.964844 0.956055
0.946289 0.935791 0.924316 0.911865 0.898438 0.884277 0.869141 0.853271
0.836426 0.818848 0.800537 0.78125 0.76123 0.740723 0.719238 0.697021
0.674316 0.650879 0.626709 0.601807 0.57666 0.550781 0.52417 0.497314
0.469971 0.441895 0.413574 0.38501 0.355713 0.326416 0.296631 0.266357
0.236084 0.205566 0.174805 0.143799 0.112793 0.081543 0.050293 0.0187988
-0.0124512 -0.0437012 -0.0749512 -0.106201 -0.137451 -0.168457 -0.199219
-0.229736 -0.260254 -0.290283 -0.320068 -0.349609 -0.378906 -0.407715
-0.436035 -0.464111 -0.491699 -0.518799 -0.545166 -0.571289 -0.59668
-0.621582 -0.645752 -0.669434 -0.692383 -0.7146 -0.736328 -0.75708
-0.7771 -0.796631 -0.815186 -0.832764 -0.849854 -0.865967 -0.881104
-0.895508 -0.90918 -0.921631 -0.93335 -0.944092 -0.954102 -0.962891
-0.970947 -0.978027 -0.984131 -0.989258 -0.993408 -0.996582 -0.998779
-0.999756 -1 -0.999268 -0.997559 -0.994873 -0.991211 -0.986328 -0.980713
-0.974121 -0.966553 -0.958008 -0.94873 -0.938232 -0.927002 -0.914551
-0.901611 -0.887451 -0.872559 -0.856934 -0.840332 -0.822998 -0.804688
-0.785645 -0.765869 -0.745361 -0.724121 -0.702148 -0.679443 -0.65625
-0.63208 -0.607666 -0.582275 -0.556641 -0.530273 -0.503418 -0.476074
-0.448242 -0.420166 -0.391357 -0.362305 -0.333008 -0.303223 -0.273193
-0.24292 -0.212402 -0.181885 -0.150879 -0.119873 -0.088623 -0.057373
-0.026123 0.00537109 0.0366211 0.0678711 0.0991211 0.130371 0.161377
0.192139 0.2229 0.253418 0.283447 0.313477 0.343018 0.372314 0.401123
0.429688 0.457764 0.485352 0.512695 0.539307 0.56543 0.591064 0.615967
0.640381 0.664062 0.687256 0.709717 0.731445 0.752441 0.772705 0.792236
0.811035 0.828857 0.845947 0.862305 0.877686 0.892334 0.906006 0.918945
0.930908 0.941895 0.951904 0.961182 0.969238 0.976562 0.98291 0.988037
0.992432 0.99585 0.998291 0.999756 1 0.999512 0.998047 0.995605 0.991943
0.987549 0.982178 0.97583 0.968506 0.960205 0.950928 0.940674 0.929443
0.91748 0.904541 0.890869 0.876221 0.860596 0.844238 0.826904 0.808838
0.790039 0.770508 0.75 0.729004 0.707275 0.684814 0.661621 0.637695
0.613281 0.588135 0.5625 0.536377 0.509521 0.482422 0.45459 0.426514
0.397949 0.369141 0.339844 0.310059 0.280029 0.25 0.219482 0.188721
0.157959 0.126953 0.0957031 0.0644531 0.0332031 0.00170898 -0.029541
-0.060791 -0.092041 -0.123291 -0.154297 -0.185303 -0.21582 -0.246338
-0.276611 -0.306641 -0.336426 -0.365723 -0.394775 -0.42334 -0.451416
-0.479248 -0.506592 -0.533203 -0.55957 -0.585205 -0.610352 -0.63501
-0.658691 -0.682129 -0.70459 -0.726562 -0.747803 -0.768066 -0.787842
-0.806885 -0.824951 -0.842285 -0.858643 -0.874268 -0.88916 -0.903076
-0.916016 -0.928223 -0.939453 -0.949707 -0.958984 -0.967529 -0.974854
-0.981445 -0.987061 -0.991455 -0.995117 -0.997803 -0.999512 -1 -0.999756
-0.998535 -0.996094 -0.99292 -0.98877 -0.983398 -0.977295 -0.970215
-0.962158 -0.953125 -0.943115 -0.932129 -0.92041 -0.907715 -0.894043
-0.879639 -0.864258 -0.8479 -0.831055 -0.812988 -0.794434 -0.774902
-0.754883 -0.733887 -0.712158 -0.689941 -0.666748 -0.643066 -0.618896
-0.593994 -0.568359 -0.542236 -0.515625 -0.488525 -0.460938 -0.433105
-0.404541 -0.375732 -0.346436 -0.316895 -0.286865 -0.256836 -0.226318
-0.195801 -0.165039 -0.134033 -0.102783 -0.0715332 -0.0402832 -0.0090332
0.0224609 0.0537109 0.0849609 0.116211 0.147217 0.178223 0.208984 0.239502
0.269775 0.299805 0.32959 0.359131 0.388184 0.416748 0.445068 0.4729
0.500244 0.527344 0.553711 0.579346 0.604736 0.629395 0.65332 0.676758
0.699463 0.72168 0.74292 0.763672 0.783447 0.80249 0.820801 0.838379
0.85498 0.87085 0.885742 0.899902 0.913086 0.925537 0.937012 0.94751
0.957031 0.965576 0.973389 0.97998 0.98584 0.990723 0.994385 0.997314
0.999023 1 1 0.998779 0.996826 0.993652 0.989746 0.984619 0.97876 0.971924
0.963867 0.955078 0.945312 0.934814 0.923096 0.910645 0.897217 0.882812
0.867676 0.851807 0.834961 0.817139 0.798828 0.779541 0.759521 0.73877
0.717285 0.695068 0.672119 0.648682 0.624512 0.599609 0.574219 0.54834
0.521729 0.494873 0.467285 0.439453 0.411133 0.382324 0.353027 0.32373
0.293701 0.263672 0.233398 0.202637 0.171875 0.140869 0.109863 0.0786133
0.0473633 0.0161133 -0.0153809 -0.0466309 -0.0778809 -0.109131 -0.140137
-0.171143 -0.201904 -0.232666 -0.262939 -0.292969 -0.322754 -0.352295
-0.381592 -0.4104 -0.438721 -0.466553 -0.494141 -0.52124 -0.547607
-0.57373 -0.599121 -0.623779 -0.647949 -0.671631 -0.694336 -0.716797
-0.738281 -0.759033 -0.779053 -0.79834 -0.81665 -0.834473 -0.851318
-0.867432 -0.882568 -0.896729 -0.910156 -0.922852 -0.934326 -0.945068
-0.954834 -0.963867 -0.97168 -0.978516 -0.984619 -0.989502 -0.993652
-0.996826 -0.998779 -1 -1 -0.999268 -0.997314 -0.994629 -0.990723 -0.98584
-0.980225 -0.973633 -0.96582 -0.957275 -0.947754 -0.937256 -0.925781
-0.913574 -0.900391 -0.88623 -0.871338 -0.855469 -0.838867 -0.821289
-0.802979 -0.783936 -0.76416 -0.743408 -0.722168 -0.700195 -0.67749
-0.654053 -0.629883 -0.605225 -0.580078 -0.554199 -0.527832 -0.500977
-0.473633 -0.445801 -0.41748 -0.388916 -0.359863 -0.330322 -0.300537
-0.270508 -0.240234 -0.209717 -0.178955 -0.147949 -0.116943 -0.0856934
-0.0544434 -0.0231934 0.00805664 0.0395508 0.0708008 0.102051 0.133057
0.164062 0.195068 0.225586 0.256104 0.286133 0.316162 0.345703 0.375
0.403809 0.432373 0.460449 0.488037 0.515137 0.541748 0.567871 0.593262
0.618164 0.642578 0.66626 0.689209 0.71167 0.733398 0.754395 0.774414
0.793945 0.812744 0.830566 0.847656 0.86377 0.87915 0.893555 0.907227
0.919922 0.931885 0.942871 0.952881 0.961914 0.969971 0.977051 0.983398
0.988525 0.99292 0.996094 0.998535 0.999756 1 0.999512 0.997803 0.995361
0.991699 0.987061 0.981689 0.975098 0.967773 0.959229 0.949951 0.939697
0.928467 0.916504 0.90332 0.889404 0.874756 0.859131 0.842529 0.825439
0.807129 0.78833 0.768555 0.748291 0.727051 0.705078 0.682617 0.659424
0.635498 0.611084 0.585938 0.560059 0.533936 0.50708 0.47998 0.452148
0.424072 0.395508 0.366455 0.337158 0.307373 0.277344 0.24707 0.216553
0.186035 0.155029 0.124023 0.0927734 0.0615234 0.0302734 -0.000976562
-0.0324707 -0.0637207 -0.0949707 -0.125977 -0.157227 -0.187988 -0.21875
-0.249268 -0.279297 -0.309326 -0.339111 -0.368408;
#X coords 0 1 882 -1 200 140 1;
127 128 129
#X restore 289 283 graph;
#X text 313 425 --- 0.02 sec ---;
#X text 19 36 Many synthesis algorithms and transformations can have
130
outputs with a zero-frequency component (commonly called DC for "direct
Miller Puckette's avatar
Miller Puckette committed
131 132 133 134
current"). These are inaudible and sometimes cause distortion in audio
output devices \, or when converting to fixed-point soundfile formats.
It is often desirable to filter an audio signal to remove its DC component.
;
135
#X text 19 122 The simplest way to do this is to use a one-pole low-pass
Miller Puckette's avatar
Miller Puckette committed
136 137 138 139
filter \, tuned to a low frequency such as 3 Hertz \, and to subtract
its output from the original. This difference is called a one-pole
\, one-zero high-pass filter \, and it is used so often that Pd provides
one in the "hip~" object.;
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
#X obj 22 220 +~ 1;
#X obj 21 357 hip~ 5;
#X text 84 357 high-pass filter;
#X floatatom 70 316 5 0 0 0 - - -, f 5;
#X msg 70 246 0;
#X text 67 220 add "DC";
#X text 108 246 zero for no filtering;
#X msg 70 269 3;
#X text 105 270 3 (or so) to remove DC;
#X text 110 293 higher freqencies affect;
#X text 150 309 the audible part of;
#X text 150 325 the signal as well.;
#X obj 22 195 osc~ 220;
#X msg 70 292 220;
#X obj 110 435 tabwrite~ H02-graph;
#X obj 1 1 cnv 15 445 20 empty \$0-pddp.cnv.header one-pole_one-zero_high-pass_filter
20 10 1 18 -261139 -33289 0;
#X obj 407 2 pddp/pddplink http://puredata.info/dev/pddp -text pddp
;
#X text 86 195 sinusoidal test signal;
#X obj 1 494 cnv 15 445 20 empty \$0-pddp.cnv.footer empty 20 12 0
14 -233017 -33289 0;
#N canvas 44 246 494 284 META 0;
163 164 165 166 167
#X text 12 105 WEBSITE http://crca.ucsd.edu/~msp/;
#X text 12 85 AUTHOR Miller Puckette;
#X text 12 65 LIBRARY PDDP;
#X text 12 25 LICENSE SIBSD;
#X text 12 125 HELP_PATCH_AUTHORS Updated for release 0.39. Jonathan
168 169
Wilkes revised the patch to conform to the PDDP template for Pd version
0.42.;
170 171
#X text 12 45 DESCRIPTION one-pole one-zero high-pass filter;
#X text 12 5 KEYWORDS tutorial;
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
#X restore 392 496 pd META;
#N canvas 13 202 428 190 References 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -261139 -33289 0;
#X text 7 2 high-pass filter- Related Help Documents;
#X text 19 37 links:;
#X restore 103 496 pd References;
#X obj 6 496 pddp/pddplink ../5.reference/pddp/help.pd -text help;
#X connect 1 0 22 0;
#X connect 2 0 1 0;
#X connect 8 0 9 0;
#X connect 9 0 0 0;
#X connect 9 0 0 1;
#X connect 9 0 22 0;
#X connect 11 0 9 1;
#X connect 12 0 11 0;
#X connect 15 0 11 0;
#X connect 20 0 8 0;
#X connect 21 0 11 0;