{"id":1426,"date":"2017-12-19T20:27:35","date_gmt":"2017-12-19T11:27:35","guid":{"rendered":"https:\/\/www.utsbox.com\/?p=1426"},"modified":"2018-07-24T22:36:14","modified_gmt":"2018-07-24T13:36:14","slug":"%e3%82%a8%e3%83%95%e3%82%a7%e3%82%af%e3%82%bf%e3%83%bc%e3%81%ae%e7%b0%a1%e5%8d%98%e3%81%aa%e5%ae%9f%e8%a3%85%e4%be%8b-%e3%82%aa%e3%83%bc%e3%83%90%e3%83%bc%e3%83%89%e3%83%a9%e3%82%a4%e3%83%96","status":"publish","type":"post","link":"https:\/\/www.utsbox.com\/?p=1426","title":{"rendered":"\u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u306e\u7c21\u5358\u306a\u5b9f\u88c5\u4f8b \u2013 \u30aa\u30fc\u30d0\u30fc\u30c9\u30e9\u30a4\u30d6\u30fb\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3"},"content":{"rendered":"<h1>\u30aa\u30fc\u30d0\u30fc\u30c9\u30e9\u30a4\u30d6\u30fb\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u88c5\u4f8b<\/h1>\n<p>\u30aa\u30fc\u30d0\u30fc\u30c9\u30e9\u30a4\u30d6\u30fb\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u4e0d\u8981\u306a\u4f4e\u97f3\u57df\u3092\u30ab\u30c3\u30c8\u3057\u305f\u3046\u3048\u3067\u5165\u529b\u4fe1\u53f7\u3092\u5897\u5e45\u3057\u3001\u632f\u5e45\u306e\u6700\u5927\u5024\u3092\u8d85\u3048\u305f\u3082\u306e\u3092\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u97f3\u3092\u6b6a\u307e\u305b\u308b\u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u3067\u3059\u3002<br \/>\n\u4e00\u822c\u7684\u306b\u30aa\u30fc\u30d0\u30fc\u30c9\u30e9\u30a4\u30d6\u30fb\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u306e\u533a\u5225\u306f\u5897\u5e45\u91cf\u306e\u5927\u5c0f\u3060\u3051\u3067\u3059\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u4e00\u7dd2\u306b\u6271\u3044\u307e\u3059\u3002<br \/>\n\u203b\u30d5\u30a1\u30ba\u3084\u30aa\u30fc\u30d0\u30fc\u30c9\u30e9\u30a4\u30d6\u3001\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u306f\u672c\u3084\u30b5\u30a4\u30c8\u306b\u3088\u3063\u3066\u8aac\u660e\u304c\u5909\u308f\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u5165\u529b\u4fe1\u53f7\u306b\u30d5\u30a3\u30eb\u30bf\u3092\u639b\u3051\u5897\u5e45\u3057\u3001\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u3057\u305f\u3082\u306e\u3092\u30aa\u30fc\u30d0\u30fc\u30c9\u30e9\u30a4\u30d6\u30fb\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3068\u3057\u3066\u4e0b\u8a18\u304c\u3088\u304f\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/th>\n<th>\u610f\u5473<\/th>\n<th>\u3060\u3044\u305f\u3044\u306e\u7bc4\u56f2<\/th>\n<\/tr>\n<tr>\n<td>\u30b2\u30a4\u30f3<\/td>\n<td>\u5165\u529b\u4fe1\u53f7\u306e\u5897\u5e45\u91cf<\/td>\n<td>10\uff5e300\u500d\u7a0b\u5ea6(dB\u63db\u7b97\u306720dB\uff5e50dB\u7a0b\u5ea6)<\/td>\n<\/tr>\n<tr>\n<td>\u30dc\u30ea\u30e5\u30fc\u30e0<\/td>\n<td>\u51fa\u529b\u4fe1\u53f7\u306e\u97f3\u91cf<\/td>\n<td>0\uff5e1\u306e\u7bc4\u56f2<\/td>\n<\/tr>\n<\/table>\n<p>\u5b9f\u88c5\u306f\u5165\u529b\u4fe1\u53f7\u306b\u30d5\u30a3\u30eb\u30bf\u3092\u639b\u3051\u3001\u30b2\u30a4\u30f3\u3067\u5897\u5e45(\u4e57\u7b97)\u3057\u305f\u3042\u3068\u632f\u5e45\u306e\u6700\u5927\u5024\u30fb\u6700\u5c0f\u5024\u3092\u8d85\u3048\u305f\u3082\u306e\u3092\u305d\u308c\u305e\u308c\u6700\u5927\u5024\u30fb\u6700\u5c0f\u5024\u306b\u5408\u308f\u305b\u307e\u3059\u3002<br \/>\n\u30d5\u30a3\u30eb\u30bf\u306f\u300c<a href=\"https:\/\/www.utsbox.com\/?page_id=728\">\u7c21\u5358\u306a\u30c7\u30b8\u30bf\u30eb\u30d5\u30a3\u30eb\u30bf\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/a>\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3042\u304f\u307e\u3067\u5b9f\u88c5\u4f8b\u3067\u3059\u306e\u3067\u3044\u3044\u97f3\u8cea\u306e\u3082\u306e\u304c\u307b\u3057\u3044\u5834\u5408\u306f\u3001\u3054\u81ea\u8eab\u3067\u8a66\u884c\u932f\u8aa4\u3044\u305f\u3060\u304f\u3088\u3046\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010\u5b9f\u88c5\u30a4\u30e1\u30fc\u30b8\u3011<br \/>\n[crayon]<br \/>\nvoid distortion(float inL[], float inR[], float outL[], float outR[], int wavelength)<br \/>\n{<br \/>\n\t\/\/ inL[]\u3001inR[]\u3001outL[]\u3001outR[]\u306f\u305d\u308c\u305e\u308c\u5165\u529b\u4fe1\u53f7\u3068\u51fa\u529b\u4fe1\u53f7\u306e\u30d0\u30c3\u30d5\u30a1(\u5de6\u53f3)<br \/>\n\t\/\/ wavelenght\u306f\u30d0\u30c3\u30d5\u30a1\u306e\u30b5\u30a4\u30ba\u3001\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u5468\u6ce2\u6570\u306f44100Hz\u3068\u3059\u308b<\/p>\n<p>\t\/\/ \u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<br \/>\n\tfloat gain   = 300.0f; \/\/ \u5897\u5e45\u91cf\u300210\uff5e300\u7a0b\u5ea6(dB\u63db\u7b97\u306720dB\uff5e50dB\u7a0b\u5ea6)<br \/>\n\tfloat volume = 0.3f;   \/\/ \u51fa\u529b\u4fe1\u53f7\u306e\u97f3\u91cf\u30020.0\uff5e1.0\u306e\u7bc4\u56f2<\/p>\n<p>\t\/\/ \u5185\u90e8\u5909\u6570<br \/>\n\tCMyFilter highpassL,highpassR; \/\/ \u30d5\u30a3\u30eb\u30bf\u30fc\u30af\u30e9\u30b9(https:\/\/www.utsbox.com\/?page_id=728 \u3088\u308a)<\/p>\n<p>\t\/\/ \u9ad8\u97f3\u57df\u306e\u307f\u901a\u3059(\u4f4e\u97f3\u57df\u3092\u30ab\u30c3\u30c8\u3059\u308b)\u30d5\u30a3\u30eb\u30bf\u8a2d\u5b9a(\u5de6\u53f3\u5206)<br \/>\n\t\/\/ \u30ab\u30c3\u30c8\u3059\u308b\u5468\u6ce2\u6570\u306e\u76ee\u5b89\u306f20Hz\uff5e300Hz\u7a0b\u5ea6<br \/>\n\t\/\/ \u5897\u5e45\u91cf\u304c\u5927\u304d\u304f\u306a\u308c\u3070\u3001\u30ab\u30c3\u30c8\u30aa\u30d5\u5468\u6ce2\u6570\u3082\u5927\u304d\u304f\u3059\u308b\u3068\u3088\u3044<br \/>\n\thighpassL.HighPass(200.0f, 1.0f \/ sqrt(2.0f));<br \/>\n\thighpassR.HighPass(200.0f, 1.0f \/ sqrt(2.0f));<\/p>\n<p>\t\/\/ \u5165\u529b\u4fe1\u53f7\u306b\u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u3092\u9069\u7528\u3059\u308b<br \/>\n\tfor (int i = 0; i < wavelength; i++)\n\t{\n\t\t\/\/ \u5165\u529b\u4fe1\u53f7\u306b\u30d5\u30a3\u30eb\u30bf\u3092\u9069\u7528\u3059\u308b\n\t\tfloat tmpL = highpassL.Process(inL[i]);\n\n\t\t\/\/ \u5165\u529b\u4fe1\u53f7\u306b\u30b2\u30a4\u30f3\u3092\u639b\u3051\u3066\u5897\u5e45\u3059\u308b\n\t\ttmpL = gain * tmpL;\n\n\t\t\/\/ \u632f\u5e45\u306e\u6700\u5927\u5024(\u3053\u3053\u3067\u306f-1.0\uff5e1.0)\u3092\u8d85\u3048\u305f\u3082\u306e\u3092\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u3059\u308b\n\t\tif (tmpL >  1.0) { tmpL =  1.0; }<br \/>\n\t\tif (tmpL < -1.0) { tmpL = -1.0; }\n\n\t\t\/\/ \u53f3\u5074\u306e\u5165\u529b\u4fe1\u53f7\u3082\u540c\u69d8\u306b\u51e6\u7406\n\t\tfloat tmpR = highpassR.Process(inR[i]);\n\t\ttmpR = gain * tmpR;\n\t\tif (tmpR >  1.0) { tmpR =  1.0; }<br \/>\n\t\tif (tmpR < -1.0) { tmpR = -1.0; }\n\t\t\n\t\t\/\/ \u5165\u529b\u4fe1\u53f7\u306b\u30d5\u30a3\u30eb\u30bf\u3092\u304b\u3051\u308b\n\t\toutL[i] = volume * tmpL;\n\t\toutR[i] = volume * tmpR;\n\t}\n}\n[\/crayon]\n\n\u4e0a\u8a18\u306f\u3042\u304f\u307e\u3067\u5b9f\u88c5\u4f8b\u3067\u3059\u3002\n\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u5024\u3092\u975e\u5bfe\u79f0(\u4f8b\uff1a-1.0\uff5e0.5 \u7b49)\u306b\u3057\u305f\u308a\u3001\u4e0a\u8a18if\u6587\u306e\u4ee3\u308f\u308a\u306b\u98fd\u548c\u95a2\u6570(tanh\u95a2\u6570\u306a\u3069)\u3092\u9069\u7528\u3057\u3066\u3082\u9762\u767d\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\n\n\u8cea\u554f\u306f\u30b3\u30e1\u30f3\u30c8\u6b04\u3084<a href=\"https:\/\/jbbs.shitaraba.net\/computer\/42917\/\" title=\"\u63b2\u793a\u677f\" target=\"_blank\">\u63b2\u793a\u677f<\/a>\u3001<a href=\"https:\/\/twitter.com\/vstcpp\">Twitter<\/a>\u3067\u3044\u305f\u3060\u3051\u3070\u3068\u304a\u3082\u3044\u307e\u3059\u3002<br \/>\n\u4ed6\u306e\u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u5b9f\u88c5\u4f8b\u306f<a href=\"https:\/\/www.utsbox.com\/?page_id=1197\">\u3053\u3061\u3089<\/a>\u306b\u3082\u3042\u308a\u307e\u3059\u3002\u3000\u2192\u3000<a href=\"https:\/\/www.utsbox.com\/?page_id=1197\">\u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u306e\u7c21\u5358\u306a\u5b9f\u88c5\u4f8b<\/a><\/p>\n<p>\u25a0<a href=\"https:\/\/jbbs.shitaraba.net\/computer\/42917\/\" title=\"\u63b2\u793a\u677f\" target=\"_blank\">\u63b2\u793a\u677f<\/a><br \/>\n\u25a0Twitter\u30a2\u30ab\u30a6\u30f3\u30c8\uff1a@vstcpp\u3000\u3000\u3000URL\uff1a<a href=\"https:\/\/twitter.com\/vstcpp\">https:\/\/twitter.com\/vstcpp<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30aa\u30fc\u30d0\u30fc\u30c9\u30e9\u30a4\u30d6\u30fb\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u88c5\u4f8b \u30aa\u30fc\u30d0\u30fc\u30c9\u30e9\u30a4\u30d6\u30fb\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u4e0d\u8981\u306a\u4f4e\u97f3\u57df\u3092\u30ab\u30c3\u30c8\u3057\u305f\u3046\u3048\u3067\u5165\u529b\u4fe1\u53f7\u3092\u5897\u5e45\u3057\u3001\u632f\u5e45\u306e\u6700\u5927\u5024\u3092\u8d85\u3048\u305f\u3082\u306e\u3092\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u97f3\u3092\u6b6a\u307e\u305b\u308b\u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u3067\u3059\u3002 \u4e00\u822c\u7684\u306b\u30aa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19],"tags":[],"class_list":["post-1426","post","type-post","status-publish","format-standard","hentry","category-19"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5fXUX-n0","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/1426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1426"}],"version-history":[{"count":6,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/1426\/revisions"}],"predecessor-version":[{"id":1521,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/1426\/revisions\/1521"}],"wp:attachment":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}