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":186,"date":"2015-02-01T12:41:24","date_gmt":"2015-02-01T17:41:24","guid":{"rendered":"http:\/\/www.auriculaonline.com\/wp\/?p=186"},"modified":"2019-09-16T11:07:54","modified_gmt":"2019-09-16T16:07:54","slug":"knob-wide-%c2%b112db","status":"publish","type":"post","link":"http:\/\/www.auriculaonline.com\/wp\/?p=186","title":{"rendered":"Knob, Wide [\u00b112dB]"},"content":{"rendered":"Download<\/a>

     Disclaimer...<\/a>

28 \u00a0 desc:Knob: Wide [\u00b112dB], v1.0.1
29 \u00a0
30 \u00a0 slider1: 50 <0, 100, 0.1> Position [mm]
31 \u00a0
32 \u00a0 @init
33 \u00a0 gfx_clear = 256*256*256-1;
34 \u00a0 m = 1;
35 \u00a0
36 \u00a0 @slider
37 \u00a0 c = 2 * ((slider1 \/ 100.0) - 0.5); \/\/ -1 < c < 1
38 \u00a0 d = sqrt(abs(c)) * 12;
39 \u00a0 c < 0 ? d *= -1;
40 \u00a0 m = pow( 10, d \/ 20.0 );
41 \u00a0
42 \u00a0 @sample
43 \u00a0 spl0 *= m;
44 \u00a0 spl1 *= m;
45 \u00a0

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

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