Deprecated: wp_getimagesize(): Implicitly marking parameter $image_info as nullable is deprecated, the explicit nullable type must be used instead in /homepages/22/d228324659/htdocs/wp/wp-includes/media.php on line 5474

Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d228324659/htdocs/wp/wp-includes/media.php:5474) in /homepages/22/d228324659/htdocs/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d228324659/htdocs/wp/wp-includes/media.php:5474) in /homepages/22/d228324659/htdocs/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d228324659/htdocs/wp/wp-includes/media.php:5474) in /homepages/22/d228324659/htdocs/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d228324659/htdocs/wp/wp-includes/media.php:5474) in /homepages/22/d228324659/htdocs/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d228324659/htdocs/wp/wp-includes/media.php:5474) in /homepages/22/d228324659/htdocs/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d228324659/htdocs/wp/wp-includes/media.php:5474) in /homepages/22/d228324659/htdocs/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d228324659/htdocs/wp/wp-includes/media.php:5474) in /homepages/22/d228324659/htdocs/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d228324659/htdocs/wp/wp-includes/media.php:5474) in /homepages/22/d228324659/htdocs/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775
{"id":277,"date":"2016-11-11T16:10:30","date_gmt":"2016-11-11T21:10:30","guid":{"rendered":"http:\/\/www.auriculaonline.com\/wp\/?p=277"},"modified":"2019-09-16T11:01:12","modified_gmt":"2019-09-16T16:01:12","slug":"eq-nth-order-notch","status":"publish","type":"post","link":"http:\/\/www.auriculaonline.com\/wp\/?p=277","title":{"rendered":"EQ, Nth-Order Notch"},"content":{"rendered":"Download<\/a>

     Disclaimer...<\/a>

23 \u00a0 desc:EQ, Notch Nth-Order, v1.0.1
24 \u00a0
25 \u00a0 slider1:2000<20,20000,1>Cutoff [Hz]
26 \u00a0 slider2:2<2,8,2>Order [N]
27 \u00a0 slider3:2<0.5,20,0.1>Q
28 \u00a0
29 \u00a0 @init
30 \u00a0 M = 1;
31 \u00a0 Q = 2;
32 \u00a0
33 \u00a0
34 \u00a0 @slider
35 \u00a0
36 \u00a0 function find_Dk(index stages)
37 \u00a0 (
38 \u00a0 _k = index;
39 \u00a0 _M = stages;
40 \u00a0 2.0 * sin($pi*(2*_k-1)\/(2*_M));
41 \u00a0 );
42 \u00a0
43 \u00a0 slider1 > 19 ? (
44 \u00a0 slider2 > 1 ? (
45 \u00a0
46 \u00a0 \tslider3 > 0.5 ? Q = slider3;
47 \u00a0 \tQ < ( 2.1 * slider1 \/ srate ) ? ( Q = 2.1 * slider1 \/ srate );
48 \u00a0 \tslider3 = Q; \t
49 \u00a0 \tsliderchange(slider3);
50 \u00a0 \t
51 \u00a0 N = slider2; \/\/ order N, 2 < N < 8
52 \u00a0 M = N \/ 2; \/\/ # of cascaded elements M, 1 < M < 4
53 \u00a0 w = 2.0 * $pi * slider1 \/ srate;
54 \u00a0 dE = 2.0 * tan( w \/ (2.0 * Q)) \/ sin(w);
55 \u00a0
56 \u00a0 k = 1;
57 \u00a0 j = 1;
58 \u00a0 Dk = find_Dk(k, M);
59 \u00a0 Ak = (1 + sqr(dE \/ 2.0)) \/ (Dk * dE \/ 2.0);
60 \u00a0 dk = sqrt(( dE * Dk ) \/ (Ak + sqrt(sqr(Ak) - 1) ));
61 \u00a0 Bk = Dk * (dE \/ 2.0) \/ dk;
62 \u00a0 Wk = Bk + sqrt(sqr(Bk) - 1);
63 \u00a0 theta_1k = 2.0 * atan(tan(w\/2.0) \/ Wk);
64 \u00a0
65 \u00a0 beta1 = 0.5 * (( 1.0 - dk \/ 2.0 * sin(theta_1k) ) \/ ( 1.0 + dk \/ 2.0 * sin(theta_1k) ));
66 \u00a0 gamma1 = ( 0.5 + beta1 ) * cos(theta_1k);
67 \u00a0 alpha1 = 0.5 * (0.5 + beta1) * ((1 - cos(theta_1k))\/(1 - cos(w)));
68 \u00a0
69 \u00a0 M > 1 ? (
70 \u00a0 k = 1;
71 \u00a0 \t\tj = 2;
72 \u00a0 \t\ttheta_2k = 2.0 * atan( Wk * tan(w\/2.0) );
73 \u00a0
74 \u00a0 \t\tbeta2 = 0.5 * (( 1.0 - dk \/ 2.0 * sin(theta_2k) ) \/ ( 1.0 + dk \/ 2.0 * sin(theta_2k) ));
75 \u00a0 \t\tgamma2 = ( 0.5 + beta2 ) * cos(theta_2k);
76 \u00a0 \t\talpha2 = 0.5 * (0.5 + beta2) * ((1 - cos(theta_2k))\/(1 - cos(w)));
77 \u00a0 );
78 \u00a0
79 \u00a0 M > 2 ? (
80 \u00a0 \t\tk = 2;
81 \u00a0 \t\tj = 1;
82 \u00a0 \t\tDk = find_Dk(k, M);
83 \u00a0 \t\tAk = (1 + sqr(dE \/ 2.0)) \/ (Dk * dE \/ 2.0);
84 \u00a0 \t\tdk = sqrt(( dE * Dk ) \/ (Ak + sqrt(sqr(Ak) - 1) ));
85 \u00a0 \t\tBk = Dk * (dE \/ 2.0) \/ dk;
86 \u00a0 \t\tWk = Bk + sqrt(sqr(Bk) - 1);
87 \u00a0 \t\ttheta_1k = 2.0 * atan(tan(w\/2.0) \/ Wk);
88 \u00a0
89 \u00a0 \t\tbeta3 = 0.5 * (( 1.0 - dk \/ 2.0 * sin(theta_1k) ) \/ ( 1.0 + dk \/ 2.0 * sin(theta_1k) ));
90 \u00a0 \t\tgamma3 = ( 0.5 + beta3 ) * cos(theta_1k);
91 \u00a0 \t\talpha3 = 0.5 * (0.5 + beta3) * ((1 - cos(theta_1k))\/(1 - cos(w)));
92 \u00a0 );
93 \u00a0
94 \u00a0 M > 3 ? (
95 \u00a0 \t\tk = 2;
96 \u00a0 \t\tj = 2;
97 \u00a0 \t\ttheta_2k = 2.0 * atan( Wk * tan(w\/2.0) );
98 \u00a0
99 \u00a0 \t\tbeta4 = 0.5 * (( 1.0 - dk \/ 2.0 * sin(theta_2k) ) \/ ( 1.0 + dk \/ 2.0 * sin(theta_2k) ));
100 \u00a0 \t\tgamma4 = ( 0.5 + beta4 ) * cos(theta_2k);
101 \u00a0 \t\talpha4 = 0.5 * (0.5 + beta4) * ((1 - cos(theta_2k))\/(1 - cos(w)));
102 \u00a0 );
103 \u00a0
104 \u00a0 );
105 \u00a0 );
106 \u00a0
107 \u00a0 @sample
108 \u00a0 x_1 = spl0;
109 \u00a0 y_1 = 2.0 * ( alpha1 * ( x_1 - 2.0 * cos(w) * x1_1 + x2_1 ) + gamma1 * y1_1 - beta1 * y2_1 );
110 \u00a0 x2_1 = x1_1;
111 \u00a0 x1_1 = x_1;
112 \u00a0 y2_1 = y1_1;
113 \u00a0 y1_1 = y_1;
114 \u00a0 spl0 = y_1;
115 \u00a0
116 \u00a0 M > 1 ? (
117 \u00a0 x_2 = spl0;
118 \u00a0 y_2 = 2.0 * ( alpha2 * ( x_2 - 2.0 * cos(w) * x1_2 + x2_2 ) + gamma2 * y1_2 - beta2 * y2_2 );
119 \u00a0 x2_2 = x1_2;
120 \u00a0 x1_2 = x_2;
121 \u00a0 y2_2 = y1_2;
122 \u00a0 y1_2 = y_2;
123 \u00a0 spl0 = y_2;
124 \u00a0 );
125 \u00a0
126 \u00a0 M > 2 ? (
127 \u00a0 x_3 = spl0;
128 \u00a0 y_3 = 2.0 * ( alpha3 * ( x_3 - 2.0 * cos(w) * x1_3 + x2_3 ) + gamma3 * y1_3 - beta3 * y2_3 );
129 \u00a0 x2_3 = x1_3;
130 \u00a0 x1_3 = x_3;
131 \u00a0 y2_3 = y1_3;
132 \u00a0 y1_3 = y_3;
133 \u00a0 spl0 = y_3;
134 \u00a0 );
135 \u00a0
136 \u00a0 M > 3 ? (
137 \u00a0 x_4 = spl0;
138 \u00a0 y_4 = 2.0 * ( alpha4 * ( x_4 - 2.0 * cos(w) * x1_4 + x2_4 ) + gamma4 * y1_4 - beta4 * y2_4 );
139 \u00a0 x2_4 = x1_4;
140 \u00a0 x1_4 = x_4;
141 \u00a0 y2_4 = y1_4;
142 \u00a0 y1_4 = y_4;
143 \u00a0 spl0 = y_4;
144 \u00a0 );
145 \u00a0
<\/p>

<\/p>Download<\/a>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"_links":{"self":[{"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/277"}],"collection":[{"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=277"}],"version-history":[{"count":3,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":631,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions\/631"}],"wp:attachment":[{"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}