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":281,"date":"2016-11-11T16:27:39","date_gmt":"2016-11-11T21:27:39","guid":{"rendered":"http:\/\/www.auriculaonline.com\/wp\/?p=281"},"modified":"2019-09-16T11:00:51","modified_gmt":"2019-09-16T16:00:51","slug":"eq-biquad","status":"publish","type":"post","link":"http:\/\/www.auriculaonline.com\/wp\/?p=281","title":{"rendered":"EQ, Biquad"},"content":{"rendered":"Download<\/a>

     Disclaimer...<\/a>

23 \u00a0 desc:EQ, Biquad, v1.0.1
24 \u00a0
25 \u00a0 slider1:0<0,7,1{Low-Pass,High-Pass,Bandpass,Notch,All-Pass,Peak,Low-Shelf,High-Shelf}>Type
26 \u00a0 slider2:0<-18,18,0.1>Boost\/Cut
27 \u00a0 slider3:1000<20,20000,1>Frequency
28 \u00a0 slider4:2<.25,10,0.1>Q
29 \u00a0 slider5:0<-20,12,0.1>Output Gain
30 \u00a0
31 \u00a0
32 \u00a0 @init
33 \u00a0 a0=1;
34 \u00a0 a1=-1.66365511325602; \/\/ LUFS 44k prefileter
35 \u00a0 a2=0.71259542807323;
36 \u00a0 b0=1.53084123005035;
37 \u00a0 b1=-2.65097999515473;
38 \u00a0 b2=1.16907907992159;
39 \u00a0
40 \u00a0 x=0;
41 \u00a0 x1=0;
42 \u00a0 x2=0;
43 \u00a0 y=0;
44 \u00a0 y1=0;
45 \u00a0 y2=0;
46 \u00a0
47 \u00a0 mFreq = 1000.0;
48 \u00a0 mType = 0;
49 \u00a0 mBoost = 0.0;
50 \u00a0 mSR = srate;
51 \u00a0 mBW = 2.0;
52 \u00a0 mGain = 0.0;
53 \u00a0
54 \u00a0
55 \u00a0 @slider
56 \u00a0 mType = slider1;
57 \u00a0 mBoost = slider2;
58 \u00a0 mFreq = slider3;
59 \u00a0 mQ = slider4;
60 \u00a0 mGain = slider5;
61 \u00a0 gain = pow( 10.0, mGain \/ 20.0 );
62 \u00a0
63 \u00a0 A = sqrt( pow( 10.0, mBoost \/ 20.0 ));
64 \u00a0 omega = 2.0 * $pi * mFreq \/ mSR;
65 \u00a0 sn = sin( omega );
66 \u00a0 cs = cos( omega );
67 \u00a0 alpha = sn \/ ( 2 * mQ );
68 \u00a0 beta = sqrt(A) \/ mQ;
69 \u00a0
70 \u00a0 \/\/ LPF
71 \u00a0 mType == 0 ? (
72 \u00a0 b0 = (1 - cs) \/ 2.0;
73 \u00a0 b1 = 1 - cs;
74 \u00a0 b2 = (1 - cs) \/ 2.0;
75 \u00a0 a0 = 1 + alpha;
76 \u00a0 a1 = -2 * cs;
77 \u00a0 a2 = 1 - alpha;
78 \u00a0 );
79 \u00a0
80 \u00a0 \/\/ HPF
81 \u00a0 mType == 1 ? (
82 \u00a0 b0 = (1 + cs) \/ 2.0;
83 \u00a0 b1 = -(1 + cs);
84 \u00a0 b2 = (1 + cs) \/ 2.0;
85 \u00a0 a0 = 1 + alpha;
86 \u00a0 a1 = -2 * cs;
87 \u00a0 a2 = 1 - alpha;
88 \u00a0 );
89 \u00a0
90 \u00a0 \/\/ BP
91 \u00a0 mType == 2 ? (
92 \u00a0 b0 = alpha;
93 \u00a0 b1 = 0;
94 \u00a0 b2 = -alpha;
95 \u00a0 a0 = 1 + alpha;
96 \u00a0 a1 = -2 * cs;
97 \u00a0 a2 = 1 - alpha;
98 \u00a0 );
99 \u00a0
100 \u00a0 \/\/ NOTCH
101 \u00a0 mType == 3 ? (
102 \u00a0 b0 = 1;
103 \u00a0 b1 = -2 * cs;
104 \u00a0 b2 = 1;
105 \u00a0 a0 = 1 + alpha;
106 \u00a0 a1 = -2 * cs;
107 \u00a0 a2 = 1 - alpha;
108 \u00a0 );
109 \u00a0
110 \u00a0 \/\/ APF
111 \u00a0 mType == 4 ? (
112 \u00a0 b0 = 1.0 - alpha;
113 \u00a0 b1 = -2.0 * cs;
114 \u00a0 b2 = 1.0 + alpha;
115 \u00a0 a0 = 1.0 + alpha;
116 \u00a0 a1 = -2.0 * cs;
117 \u00a0 a2 = 1.0 - alpha;
118 \u00a0 );
119 \u00a0
120 \u00a0 \/\/ PEAK
121 \u00a0 mType == 5 ? (
122 \u00a0 b0 = 1.0 + ( alpha * A );
123 \u00a0 b1 = -2.0 * cs;
124 \u00a0 b2 = 1.0 - ( alpha * A );
125 \u00a0 a0 = 1.0 + ( alpha \/ A );
126 \u00a0 a1 = -2.0 * cs;
127 \u00a0 a2 = 1.0 - ( alpha \/ A );
128 \u00a0 );
129 \u00a0
130 \u00a0 \/\/ LSHELF
131 \u00a0 mType == 6 ? (
132 \u00a0 b0 = A * ((A + 1) - (A - 1) * cs + beta * sn);
133 \u00a0 b1 = 2 * A * ((A - 1) - (A + 1) * cs);
134 \u00a0 b2 = A * ((A + 1) - (A - 1) * cs - beta * sn);
135 \u00a0 a0 = (A + 1) + (A - 1) * cs + beta * sn;
136 \u00a0 a1 = -2 * ((A - 1) + (A + 1) * cs);
137 \u00a0 a2 = (A + 1) + (A - 1) * cs - beta * sn;
138 \u00a0 );
139 \u00a0
140 \u00a0 \/\/ HSHELF
141 \u00a0 mType == 7 ? (
142 \u00a0 b0 = A * ((A + 1) + (A - 1) * cs + beta * sn);
143 \u00a0 b1 = -2 * A * ((A - 1) + (A + 1) * cs);
144 \u00a0 b2 = A * ((A + 1) + (A - 1) * cs - beta * sn);
145 \u00a0 a0 = (A + 1) - (A - 1) * cs + beta * sn;
146 \u00a0 a1 = 2 * ((A - 1) - (A + 1) * cs);
147 \u00a0 a2 = (A + 1) - (A - 1) * cs - beta * sn;
148 \u00a0 );
149 \u00a0
150 \u00a0 \/\/ precompute the coefficients \/\/
151 \u00a0 q0 = b0 \/ a0;
152 \u00a0 q1 = b1 \/ a0;
153 \u00a0 q2 = b2 \/ a0;
154 \u00a0 q3 = a1 \/ a0;
155 \u00a0 q4 = a2 \/ a0;
156 \u00a0
157 \u00a0
158 \u00a0 @sample
159 \u00a0 x2 = x1;
160 \u00a0 x1 = x;
161 \u00a0 x = spl0;
162 \u00a0 y2 = y1;
163 \u00a0 y1 = y;
164 \u00a0 y = q0*x + q1*x1 + q2*x2 - q3*y1 - q4*y2;
165 \u00a0 spl0 = y * gain;
166 \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\/281"}],"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=281"}],"version-history":[{"count":3,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":589,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions\/589"}],"wp:attachment":[{"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}