{"id":1257,"date":"2017-11-27T22:48:39","date_gmt":"2017-11-27T13:48:39","guid":{"rendered":"https:\/\/www.utsbox.com\/?p=1257"},"modified":"2018-07-24T22:35:42","modified_gmt":"2018-07-24T13:35:42","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%83%91%e3%83%b3%e3%83%8a%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.utsbox.com\/?p=1257","title":{"rendered":"\u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u306e\u7c21\u5358\u306a\u5b9f\u88c5\u4f8b &#8211; \u30d1\u30f3\u30ca\u30fc"},"content":{"rendered":"<h1>\u30d1\u30f3\u30ca\u30fc\u306e\u5b9f\u88c5\u4f8b<\/h1>\n<p>\u30d1\u30f3\u30ca\u30fc\u3068\u306f\u5165\u529b\u97f3\u58f0\u306e\u97f3\u91cf(\u632f\u5e45)\u3092\u4e00\u5b9a\u5468\u671f\u3067\u5de6\u53f3\u306b\u63fa\u3089\u3059\u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u3067\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>\u5468\u671f<\/td>\n<td>\u30d1\u30f3\u306e\u5468\u671f<\/td>\n<td>0Hz\uff5e30Hz\u7a0b\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>\u6df1\u3055<\/td>\n<td>\u30d1\u30f3\u306e\u52b9\u304d\u5177\u5408(\u3069\u306e\u7a0b\u5ea6\u5de6\u53f3\u306b\u63fa\u3089\u3059\u304b?)<\/td>\n<td>0\uff5e1\u500d<\/td>\n<\/tr>\n<\/table>\n<p>\u5b9f\u88c5\u306f\u5de6\u53f3\u306e\u5165\u529b\u4fe1\u53f7\u306e\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u6b63\u5f26\u6ce2\u3084\u4e09\u89d2\u6ce2\u7b49\u3067\u8a08\u7b97\u3057\u304b\u3051\u5408\u308f\u305b\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u4f8b\uff1a<br \/>\n\u3000\u53f3\u306e\u97f3\u91cf\u304c1.0\u306e\u6642\u3001\u5de6\u306e\u97f3\u91cf\u306f1.0-1.0=0.0\u3001<br \/>\n\u3000\u53f3\u306e\u97f3\u91cf\u304c0.8\u306e\u6642\u3001\u5de6\u306e\u97f3\u91cf\u306f1.0-0.8=0.2<br \/>\n              :<br \/>\n\u3000\u53f3\u306e\u97f3\u91cf\u304c0.2\u306e\u6642\u3001\u5de6\u306e\u97f3\u91cf\u306f1.0-0.2=0.8<\/p>\n<p>\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 panner(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 freq = 4.0f;\/\/ \u30d1\u30f3\u306e\u5468\u671f\u30020Hz\uff5e16Hz\u7a0b\u5ea6<br \/>\n\tfloat depth = 0.5f; \/\/ \u30d1\u30f3\u306e\u52b9\u304d\u5177\u5408\u30020\uff5e1\u306e\u9593\u3002<\/p>\n<p>\t\/\/ \u5185\u90e8\u5909\u6570<br \/>\n\tfloat theta = 0; \/\/ sin\u95a2\u6570\u306e\u89d2\u5ea6 \u03b8\u3002\u521d\u671f\u5024\u306f0<br \/>\n\tfloat speed = (2.0f * 3.14159265f * freq) \/ 44100.0f; \/\/ \u30d1\u30f3\u306e\u30b9\u30d4\u30fc\u30c9\u3002\u89d2\u901f\u5ea6\u03c9\u3068\u540c\u3058\u3002<\/p>\n<p>\t\/\/ \u5165\u529b\u4fe1\u53f7\u306b\u30a8\u30d5\u30a7\u30af\u30c8\u3092\u304b\u3051\u308b<br \/>\n\tfor (int i = 0; i < wavelength; i++)\n\t{\n\t\t\/\/ \u89d2\u5ea6\u03b8\u306b\u89d2\u901f\u5ea6\u3092\u52a0\u3048\u308b\n\t\ttheta += speed;\n\n\t\t\/\/ sin\u95a2\u6570\u306e\u7d50\u679c\u30920\uff5e1\u306e\u9593\u306b\u3059\u308b\n\t\tfloat a = (sin(theta) * 0.5f) + 0.5f;\n\n\t\t\/\/ depth\u3068\u5148\u307b\u3069\u306e\u7d50\u679c\u304b\u3089\u639b\u3051\u5408\u308f\u305b\u308b\u5024\u3092\u8a08\u7b97\u3059\u308b\n\t\tfloat b = (1.0f - depth) + (a * depth);\n\t\tfloat c = (1.0f - depth) + ((1.0f - a) * depth);\n\n\t\t\/\/ \u5165\u529b\u4fe1\u53f7\u3068\u639b\u3051\u5408\u308f\u305b\u308b\n\t\toutL[i] = b * inL[i];\n\t\toutR[i] = c * inR[i];\n\t}\n}\n[\/crayon]\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>\u30d1\u30f3\u30ca\u30fc\u306e\u5b9f\u88c5\u4f8b \u30d1\u30f3\u30ca\u30fc\u3068\u306f\u5165\u529b\u97f3\u58f0\u306e\u97f3\u91cf(\u632f\u5e45)\u3092\u4e00\u5b9a\u5468\u671f\u3067\u5de6\u53f3\u306b\u63fa\u3089\u3059\u30a8\u30d5\u30a7\u30af\u30bf\u30fc\u3067\u3059\u3002 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3068\u3057\u3066\u4e0b\u8a18\u304c\u3088\u304f\u5229\u7528\u3055\u308c\u307e\u3059\u3002 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc \u610f\u5473 \u3060\u3044\u305f\u3044\u306e\u7bc4\u56f2 \u5468\u671f \u30d1\u30f3\u306e\u5468\u671f 0Hz\uff5e30Hz\u7a0b\u5ea6 \u6df1\u3055 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":"","jetpack_post_was_ever_published":false},"categories":[19],"tags":[],"class_list":["post-1257","post","type-post","status-publish","format-standard","hentry","category-19"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5fXUX-kh","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/1257","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=1257"}],"version-history":[{"count":10,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/1257\/revisions"}],"predecessor-version":[{"id":1473,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/1257\/revisions\/1473"}],"wp:attachment":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}