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":206,"date":"2016-11-07T16:12:40","date_gmt":"2016-11-07T21:12:40","guid":{"rendered":"http:\/\/www.auriculaonline.com\/wp\/?p=206"},"modified":"2019-09-16T11:12:18","modified_gmt":"2019-09-16T16:12:18","slug":"206","status":"publish","type":"post","link":"http:\/\/www.auriculaonline.com\/wp\/?p=206","title":{"rendered":"Pan, Linear [-6dB]"},"content":{"rendered":"Download<\/a>

     Disclaimer...<\/a>

28 \u00a0 desc:Pan: Linear [-6dB], v1.1.0
29 \u00a0
30 \u00a0 slider1:0<-120,120,0.1>Pan Angle [degrees]
31 \u00a0
32 \u00a0 @init
33 \u00a0 gfx_clear = 256*256*256-1;
34 \u00a0 m = 0.5;
35 \u00a0
36 \u00a0 @slider
37 \u00a0 m = (120 + slider1) \/ 240.0;
38 \u00a0
39 \u00a0 @sample
40 \u00a0 spl1 *= m;
41 \u00a0 x = 1.0 - m;
42 \u00a0 spl0 *= x;
43 \u00a0

     
Graphics...<\/a><\/p>

45 \u00a0 @gfx 256 256
46 \u00a0 gfx_setfont(1, \"Arial\", 10);
47 \u00a0 gfx_a = 1;
48 \u00a0
49 \u00a0 gfx_r = gfx_g = gfx_b = 0.1;
50 \u00a0 gfx_line(0, 0, gfx_w, 0, 0.5); \/\/ outline our GUI box
51 \u00a0 gfx_line(0, 0, 0, gfx_h, 0.5);
52 \u00a0 gfx_line(gfx_w-1, 0, gfx_w-1, gfx_h, 0.5);
53 \u00a0 gfx_line(0, gfx_h-2, gfx_w, gfx_h-2, 0.5);
54 \u00a0
55 \u00a0 x_step = gfx_w \/ 10;
56 \u00a0 y_step = gfx_h \/ 10;
57 \u00a0
58 \u00a0 i = 1;
59 \u00a0 loop(9, \/\/ y-axiis
60 \u00a0 x = i*x_step;
61 \u00a0 gfx_line(x, y_step, x, y_step*7, 0.5);
62 \u00a0 i += 1;
63 \u00a0 );
64 \u00a0
65 \u00a0 gfx_x = x_step - 15;
66 \u00a0 gfx_y = gfx_h - 3*y_step + 9;
67 \u00a0 sprintf(str, \"%.1f\u02da\", -120);
68 \u00a0 gfx_drawstr(str);
69 \u00a0
70 \u00a0 gfx_x = 3*x_step - 11;
71 \u00a0 gfx_y = gfx_h - 3*y_step + 9;
72 \u00a0 sprintf(str, \"%.1f\u02da\", -60);
73 \u00a0 gfx_drawstr(str);
74 \u00a0
75 \u00a0 gfx_x = 5*x_step - 7;
76 \u00a0 gfx_y = gfx_h - 3*y_step + 9;
77 \u00a0 sprintf(str, \"%.1f\u02da\", 0);
78 \u00a0 gfx_drawstr(str);
79 \u00a0
80 \u00a0 gfx_x = 7*x_step - 11;
81 \u00a0 gfx_y = gfx_h - 3*y_step + 9;
82 \u00a0 sprintf(str, \"+%.1f\u02da\", 60);
83 \u00a0 gfx_drawstr(str);
84 \u00a0
85 \u00a0 gfx_x = 9*x_step - 15;
86 \u00a0 gfx_y = gfx_h - 3*y_step + 9;
87 \u00a0 sprintf(str, \"+%.1f\u02da\", 120);
88 \u00a0 gfx_drawstr(str);
89 \u00a0
90 \u00a0 i = 1;
91 \u00a0 loop(7, \/\/ x-axiis
92 \u00a0 y = i*y_step;
93 \u00a0 gfx_line(x_step-2, y, x_step*9, y, 0.5);
94 \u00a0 i += 1;
95 \u00a0 );
96 \u00a0
97 \u00a0 gfx_x = x_step - 32;
98 \u00a0 gfx_y = y_step - 6;
99 \u00a0 gfx_drawchar($' ');
100 \u00a0 gfx_drawchar($'0');
101 \u00a0 gfx_drawchar($' ');
102 \u00a0 gfx_drawchar($'d');
103 \u00a0 gfx_drawchar($'B');
104 \u00a0
105 \u00a0 gfx_x = x_step - 33;
106 \u00a0 gfx_y = 2*y_step - 7;
107 \u00a0 gfx_drawchar($'-');
108 \u00a0 gfx_drawchar($' ');
109 \u00a0 gfx_drawchar($'3');
110 \u00a0 gfx_drawchar($'d');
111 \u00a0 gfx_drawchar($'B');
112 \u00a0
113 \u00a0 gfx_x = x_step - 33;
114 \u00a0 gfx_y = 3*y_step - 7;
115 \u00a0 gfx_drawchar($'-');
116 \u00a0 gfx_drawchar($' ');
117 \u00a0 gfx_drawchar($'6');
118 \u00a0 gfx_drawchar($'d');
119 \u00a0 gfx_drawchar($'B');
120 \u00a0
121 \u00a0 gfx_x = x_step - 33;
122 \u00a0 gfx_y = 4*y_step - 7;
123 \u00a0 gfx_drawchar($'-');
124 \u00a0 gfx_drawchar($' ');
125 \u00a0 gfx_drawchar($'9');
126 \u00a0 gfx_drawchar($'d');
127 \u00a0 gfx_drawchar($'B');
128 \u00a0
129 \u00a0 gfx_x = x_step - 36;
130 \u00a0 gfx_y = 5*y_step - 7;
131 \u00a0 gfx_drawchar($'-');
132 \u00a0 gfx_drawchar($'1');
133 \u00a0 gfx_drawchar($'2');
134 \u00a0 gfx_drawchar($'d');
135 \u00a0 gfx_drawchar($'B');
136 \u00a0
137 \u00a0 gfx_x = x_step - 36;
138 \u00a0 gfx_y = 6*y_step - 7;
139 \u00a0 gfx_drawchar($'-');
140 \u00a0 gfx_drawchar($'1');
141 \u00a0 gfx_drawchar($'5');
142 \u00a0 gfx_drawchar($'d');
143 \u00a0 gfx_drawchar($'B');
144 \u00a0
145 \u00a0 gfx_x = x_step - 36;
146 \u00a0 gfx_y = 7*y_step - 7;
147 \u00a0 gfx_drawchar($'-');
148 \u00a0 gfx_drawchar($'1');
149 \u00a0 gfx_drawchar($'8');
150 \u00a0 gfx_drawchar($'d');
151 \u00a0 gfx_drawchar($'B');
152 \u00a0
153 \u00a0 pos = slider1 + 120;
154 \u00a0 gfx_r = gfx_g = 0.1;
155 \u00a0 gfx_b = 0.9;
156 \u00a0 dB = 20 * log10(m);
157 \u00a0 dB *= -1;
158 \u00a0 pos == 0 ? dB = 99.9;
159 \u00a0 m == 0 ? dB = 99.9;
160 \u00a0 y = y_step*dB\/3 + y_step;
161 \u00a0 y > y_step*7 - 1 ? y = y_step*7 - 1;
162 \u00a0 gfx_rect(x_step+2, y, x_step*8-3, 2, 0.5); \/\/ horizontal line
163 \u00a0 gfx_rect(x_step+pos\/240*x_step*8, y_step+2, 1, y_step*6-3, 0.5);\/\/ vertical line
164 \u00a0 gfx_rect(x_step+pos\/240*x_step*8-3, y-2, 7, 6, 0.5); \/\/ hilite box
165 \u00a0 gfx_x = gfx_w*.9+8;
166 \u00a0 gfx_y = y-6;
167 \u00a0 sprintf(str, \"%.1fdB\", -dB);
168 \u00a0 gfx_drawstr(str);
169 \u00a0 gfx_x = x_step+pos\/240*x_step*8-9;
170 \u00a0 gfx_y = y_step - 17;
171 \u00a0 sprintf(str, \"%.1f\u02da\", slider1);
172 \u00a0 gfx_drawstr(str);
173 \u00a0
174 \u00a0 gfx_g = 0.2;
175 \u00a0 gfx_b = gfx_r = 0.9;
176 \u00a0 RES = 100; \/\/ min = 8
177 \u00a0 x_step1 = x_step * 8\/RES;
178 \u00a0
179 \u00a0 i = 1;
180 \u00a0 loop(RES, \/\/8, \/\/ main curve
181 \u00a0 x = i*x_step1;
182 \u00a0
183 \u00a0 c=(240*(i-1)\/RES)-120;
184 \u00a0 m1 = (120 + c) \/ 240.0;
185 \u00a0 dB1 = -20 * log10(m1);
186 \u00a0 dB1 > 18 ? dB1 = 18;
187 \u00a0 i == 1 ? dB1 = 18;
188 \u00a0 y = y_step*dB1\/3 + y_step;
189 \u00a0
190 \u00a0 c=(240*(i)\/RES)-120;
191 \u00a0 m2 = (120 + c) \/ 240.0;
192 \u00a0 dB2 = -20 * log10(m2);
193 \u00a0 dB2 > 18 ? dB2 = 18;
194 \u00a0 i == 1 ? dB2 = 18;
195 \u00a0 y1 = y_step*dB2 \/3 + y_step;
196 \u00a0
197 \u00a0 gfx_line(x_step+x-x_step1, y, x_step+x, y1, 0.5);
198 \u00a0 i += 1;
199 \u00a0 );
200 \u00a0
201 \u00a0 gfx_setfont(1, \"Arial\", 12); \/\/ main title
202 \u00a0 gfx_r = gfx_g = gfx_b = 0.0;
203 \u00a0 gfx_x = x_step;
204 \u00a0 gfx_y = gfx_h - y_step - 7;
205 \u00a0 gfx_drawstr(\"Linear Pan: Gain (dB) - vs - Pan Angle (degrees)\");
206 \u00a0
207 \u00a0 \/\/ mouse
208 \u00a0 mouse_cap == 1 ? (
209 \u00a0 xx = mouse_x;
210 \u00a0 xx > gfx_w * 0.1 ? (
211 \u00a0 xx < gfx_w * 0.9 ? (
212 \u00a0 yy = mouse_y;
213 \u00a0 yy > gfx_h * 0.1 ? (
214 \u00a0 yy < gfx_h * 0.7 ? (
215 \u00a0 slider1 = 240 * (xx - gfx_w*.1) \/ (gfx_w*.9 - gfx_w*.1) - 120;
216 \u00a0 \/\/ slider1 < 0.3 ? slider1 = floor(slider1);
217 \u00a0 \/\/ slider1 > 99.7 ? slider1 = ceil(slider1);
218 \u00a0 slider1 = floor(slider1*10);
219 \u00a0 slider1 \/= 10;
220 \u00a0 sliderchange(slider1);
221 \u00a0 slider_automate(slider1);
222 \u00a0 m = (120 + slider1) \/ 240.0;
223 \u00a0 slider1 < -119 ? ( m = 0.0; slider1 = -120; );
224 \u00a0 slider1 > 119 ? ( m = 1.0; slider1 = 120; );
225 \u00a0 );
226 \u00a0 );
227 \u00a0 );
228 \u00a0 );
229 \u00a0 );
230 \u00a0
231 \u00a0 \n
<\/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":[9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/206"}],"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=206"}],"version-history":[{"count":6,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/206\/revisions"}],"predecessor-version":[{"id":608,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/206\/revisions\/608"}],"wp:attachment":[{"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.auriculaonline.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}