{"id":1203,"date":"2018-10-03T15:39:33","date_gmt":"2018-10-03T06:39:33","guid":{"rendered":"http:\/\/blog.hi-farm.net\/?p=1203"},"modified":"2018-10-03T19:26:15","modified_gmt":"2018-10-03T10:26:15","slug":"max-msp-unity-interactive-192ch","status":"publish","type":"post","link":"http:\/\/blog.hi-farm.net\/en\/2018\/10\/03\/max-msp-unity-interactive-192ch\/","title":{"rendered":"[works] an interactive contents that control 192ch sounds using Max\/Msp, Unity"},"content":{"rendered":"<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/http:\/\/blog.hi-farm.net\/en\/2018\/10\/03\/max-msp-unity-interactive-192ch\/\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"[works] an interactive contents that control 192ch sounds using Max\/Msp, Unity\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"http:\/\/blog.hi-farm.net\/en\/2018\/10\/03\/max-msp-unity-interactive-192ch\/\" data-text=\"[works] an interactive contents that control 192ch sounds using Max\/Msp, Unity\" data-via=\"mmlemon\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"http:\/\/blog.hi-farm.net\/en\/2018\/10\/03\/max-msp-unity-interactive-192ch\/\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"http:\/\/blog.hi-farm.net\/en\/2018\/10\/03\/max-msp-unity-interactive-192ch\/\" colorscheme=\"light\" ><\/fb:send><\/div>\n            <div class=\"wsbl_tumblr\"><a href=\"\/\/www.tumblr.com\/share?v=3&u=http%3A%2F%2Fblog.hi-farm.net%2Fen%2F2018%2F10%2F03%2Fmax-msp-unity-interactive-192ch%2F&t=%5Bworks%5D%20an%20interactive%20contents%20that%20control%20192ch%20sounds%20using%20Max%2FMsp%2C%20Unity\" title=\"Share on Tumblr\" style=\"display:inline-block; text-indent:-9999px; overflow:hidden; width:81px; height:20px; background:url('\/\/platform.tumblr.com\/v1\/share_1.png') top left no-repeat transparent;\">Share on Tumblr<\/a><\/div>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"inline\" href=\"http:\/\/blog.hi-farm.net\/en\/2018\/10\/03\/max-msp-unity-interactive-192ch\/\" width=\"250\"><\/g:plusone><\/div>\n            <div class=\"wsbl_evernote\">[`evernote` not found]<\/div>\n            <div class=\"wsbl_line\"><a href='http:\/\/line.me\/R\/msg\/text\/?%5Bworks%5D%20an%20interactive%20contents%20that%20control%20192ch%20sounds%20using%20Max%2FMsp%2C%20Unity%0D%0Ahttp%3A%2F%2Fblog.hi-farm.net%2Fen%2F2018%2F10%2F03%2Fmax-msp-unity-interactive-192ch%2F' title='LINE\u3067\u9001\u308b' rel=nofollow class='wp_social_bookmarking_light_a' ><img src='http:\/\/blog.hi-farm.net\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/line88x20.png' alt='LINE\u3067\u9001\u308b' title='LINE\u3067\u9001\u308b' width='88' height='20' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_pocket\"><a href=\"https:\/\/getpocket.com\/save\" class=\"pocket-btn\" data-lang=\"en\" data-save-url=\"http:\/\/blog.hi-farm.net\/en\/2018\/10\/03\/max-msp-unity-interactive-192ch\/\" data-pocket-count=\"none\" data-pocket-align=\"left\" >Pocket<\/a><script type=\"text\/javascript\">!function(d,i){if(!d.getElementById(i)){var j=d.createElement(\"script\");j.id=i;j.src=\"https:\/\/widgets.getpocket.com\/v1\/j\/btn.js?v=1\";var w=d.getElementById(i);d.body.appendChild(j);}}(document,\"pocket-btn-js\");<\/script><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n<div style=\"float: right; margin-left: 10px;\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-count=\"vertical\" data-url=\"http:\/\/blog.hi-farm.net\/en\/2018\/10\/03\/max-msp-unity-interactive-192ch\/\">Tweet<\/a><\/div>\nThere are many projects using the laser on the contents on the web, so at first glance I don&#8217;t program and production of interactive contents &#8230;.? There is an increasing number of things to be said, but in fact I&#8217;m developing a lot!<br \/>\nHowever, due to the nature of the projects, there are many things that are hard to disclose.<\/p>\n<p>I am disappointing that it is impossible to write concrete things because this project is completely experienced content in a non-public place &#8230;! There was content that I challenged technically, so I&#8217;ll write it down.<\/p>\n<h2>Production contents- VR experiment with many people<\/h2>\n<p>\nMultiplayer VR content of sound and video.<br \/>\nIf you touch the projection surface, there will be a realistic sound.<br \/>\nI was in charge of implementing this content.<\/p>\n<p>A mechanism is below:<br \/>\n<img loading=\"lazy\" src=\"http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/\u30b7\u30b9\u30c6\u30e0\u6982\u8981-1024x459.png\" alt=\"\" width=\"640\" height=\"287\" class=\"alignnone size-large wp-image-1213\" srcset=\"http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/\u30b7\u30b9\u30c6\u30e0\u6982\u8981-1024x459.png 1024w, http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/\u30b7\u30b9\u30c6\u30e0\u6982\u8981-300x134.png 300w, http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/\u30b7\u30b9\u30c6\u30e0\u6982\u8981-768x344.png 768w, http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/\u30b7\u30b9\u30c6\u30e0\u6982\u8981-650x291.png 650w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\n<\/p>\n<h2>Sound control method &#8211; adopted Max<\/h2>\n<p><a href=\"https:\/\/cycling74.com\/\" target=\"_blank\"><img loading=\"lazy\" src=\"http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/06\/max7-logo-white-150x150.png\" alt=\"Max\/Msp logo\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-1148\" srcset=\"http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/06\/max7-logo-white-150x150.png 150w, http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/06\/max7-logo-white-300x300.png 300w, http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/06\/max7-logo-white-144x144.png 144w, http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/06\/max7-logo-white.png 417w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a><a href=\"https:\/\/github.com\/naudio\/NAudio\" target=\"_blank\"><img loading=\"lazy\" src=\"http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/naudio-logo.png\" alt=\"\" width=\"619\" height=\"143\" class=\"alignnone size-full wp-image-1218\" srcset=\"http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/naudio-logo.png 619w, http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/naudio-logo-300x69.png 300w\" sizes=\"(max-width: 619px) 100vw, 619px\" \/><\/a><\/p>\n<p>\nIn accordance with the touch operation, Unity specify the channel and the sound file to be played to Max app, and play the sound.<br \/>\nThere is a maximum of 192 ch, and I do not use up all of 192 ch to full use, but as far as I had dealt with up to 8 ch at most, I could not image, so I verified the realization method.<\/p>\n<p>Since interactive function was made with Unity, I was also considering using libraries such as <a href=\"https:\/\/github.com\/naudio\/NAudio\" target=\"_blank\">nAudio (https:\/\/github.com\/naudio\/NAudio)<\/a> so that it can be completed within Unity, but as it seems difficult to implement multiple channels and at the same time reproducing 8 sounds Because it was often interrupted, I decided to look for another realization method.<\/p>\n<p>So I decided to use <a href=\"https:\/\/cycling74.com\/\" target=\"_blank\">Max (https:\/\/cycling74.com\/)<\/a>.<br \/>\n<a href=\"https:\/\/cycling74.com\/\" target=\"_blank\"> Max <\/a> is easy to test multi-channel durability, in fact it is about 150 ch at the same time without going to 192 ch It was adopted because there was no interruption and play was possible if there was.<\/p>\n<p>It is safe to be able to test easily without Max&#8217;s experience.<br \/>\nMax only needs to change the numerical value of the channel, and file switching was relatively easy.<br \/>\nBecause I am not used to program connecting patches, it was hard for a while, but avoiding problems caused by lack of experience that you do not know Max&#8217;s rule by combining with external objects and javascript like plugins written in C ++ I did it.<\/p>\n<hr \/>\n<p style=\"background-color:#eee;border:1px solid #999;padding: 8px;font-size:small;\">\nNote: Although it may have been realized when nAudio was investigated further over time, I decided to give up because the delivery date was approaching, but in case of outputting sounds other than standard audio output such as audio interface , It is a very useful library for controlling sound with C #.\n<\/p>\n<\/p>\n<h2>About touch detection<\/h2>\n<p><img loading=\"lazy\" src=\"http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/21vOD6HMwqL-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><img loading=\"lazy\" src=\"http:\/\/blog.hi-farm.net\/wp-content\/uploads\/2018\/10\/unity-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/p>\n<p>\nThe touch function adopts a laser sensor because it is content to be experienced by many people.<br \/>\n\u00a0<br \/>\nI have been to this before, so I did not have much trouble.<br \/>\nIt is an impression that it is easier to make a rough interaction of &#8220;degree of touch&#8221; than a fine interaction such as tap, double tap, drag.<\/p>\n<p>Since it was necessary to detect the interaction (touch) with the image projected on a large wall, I made it so that I can debug with life size.<\/p>\n<p>As for the touch, because there was a case where fingers were individually recognized depending on how to place the hands,<br \/>\nIn order to prevent erroneous operation, coordinates of a certain range were grouped and processed.<\/p>\n<h2>Finally<\/h2>\n<p>\nI can not write about the contents quite easily, but this time I used Max for the first time.<br \/>\nAlthough it is not a flashy usage that puts an effect on the sound, the system itself is very stable and the contents itself seems to be popular.<br \/>\nI would like to do more work using Max from now.<\/p>\n<p>As I was unfamiliar with Max, I had a hard time, so I&#8217;d like to write notes on production on blog.\n<\/p>","protected":false},"excerpt":{"rendered":"<p>Tweet There are many projects using the laser on the contents on the web, so at first glance I don&#8217;t pro &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[82,30,270,164],"tags":[209,273,272,205,271],"_links":{"self":[{"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/posts\/1203"}],"collection":[{"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/comments?post=1203"}],"version-history":[{"count":23,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/posts\/1203\/revisions"}],"predecessor-version":[{"id":1230,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/posts\/1203\/revisions\/1230"}],"wp:attachment":[{"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/media?parent=1203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/categories?post=1203"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.hi-farm.net\/en\/wp-json\/wp\/v2\/tags?post=1203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}