{"id":2600,"date":"2022-08-22T17:42:31","date_gmt":"2022-08-22T08:42:31","guid":{"rendered":"http:\/\/mirror.boy.jp\/?p=2600"},"modified":"2022-08-25T08:49:12","modified_gmt":"2022-08-24T23:49:12","slug":"node-for-max-%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%80%81%e5%ae%9a%e5%bd%a2%e5%a4%96%e3%81%aeudp%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e5%8f%97%e4%bf%a1-max8-n4m","status":"publish","type":"post","link":"https:\/\/mirror.boy.jp\/?p=2600","title":{"rendered":"Node for Max \u3092\u7528\u3044\u3066\u3001\u5b9a\u5f62\u5916\u306eUDP\u30c7\u30fc\u30bf\u3092\u53d7\u4fe1 #Max8 #n4m"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Max\u306e\u751f\u547d\u7ddaUDP\u3067\u554f\u984c\u304c\u30fb\u30fb\u30fb<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-17.01.36.jpg\" alt=\"\" class=\"wp-image-2601\" width=\"690\" height=\"382\" srcset=\"https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-17.01.36.jpg 440w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-17.01.36-400x222.jpg 400w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><figcaption>\u4ed6\u306e\u30a2\u30d7\u30ea\u3092\u7e4b\u3044\u3067\u304f\u308c\u308b updreceive<\/figcaption><\/figure>\n\n\n\n<p>\u30bb\u30f3\u30b7\u30f3\u30b0\u30843D\uff08Unity \/ UE \/ Arduino) \u7b49\u3068\u306e\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u6642\u306b\u91cd\u5b9d\u3059\u308budprecieve \u3067\u3059\u304c\u3001udp\u3092\u53d7\u4fe1\u3059\u308b\u5834\u5408\u306b\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u304c4bytes\u306b\u63c3\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u9577\u3059\u304e\u305f\u5834\u5408\u306b\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u306a\u3069\u306e\u8a2d\u5b9a\u3084OSC-route\u3092\u5229\u7528\u3057\u3066\u3082\u4e0a\u624b\u304f\u53d7\u4fe1\u3067\u304d\u306a\u3044\u4e8b\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"154\" src=\"http:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-16.07.57-1-1024x154.jpg\" alt=\"\" class=\"wp-image-2603\" srcset=\"https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-16.07.57-1-1024x154.jpg 1024w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-16.07.57-1-400x60.jpg 400w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-16.07.57-1-768x116.jpg 768w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-16.07.57-1.jpg 1056w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>OSC Bad message name string: DataAfterAlignedString: Unreasonably long string Dropping entire message. \/ OSC packet size not a multiple of 4 byte dropping.<\/figcaption><\/figure>\n\n\n\n<p>Max\u5185\u306b\u3069\u3046\u306b\u304b\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066Node for Max\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Node for Max \u3067 UDP receive<\/h1>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"637\" src=\"http:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-17.13.17-1024x637.jpg\" alt=\"\" class=\"wp-image-2604\" srcset=\"https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-17.13.17-1024x637.jpg 1024w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-17.13.17-400x249.jpg 400w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-17.13.17-768x477.jpg 768w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-17.13.17-1536x955.jpg 1536w, https:\/\/mirror.boy.jp\/wp-content\/uploads\/2022\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-08-22-17.13.17.jpg 1734w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>node object \u306f\u3001\u3068\u308a\u3042\u3048\u305aHelp\u304b\u3089\u30b3\u30d4\u30da\u3067OK<\/figcaption><\/figure>\n\n\n\n<p>node.script objectjs \u3092Help\u304b\u3089\u30b3\u30d4\u30da\u3057\u3001\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u30fc\u304c\u958b\u304f\u306e\u3067\u66f8\u304d\u63db\u3048\u307e\u3059\u3002Max\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306f\u30af\u30bd\u306a\u306e\u3067\u3001VS Code\u4f7f\u3063\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">udpreceive.js<\/h2>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">const dgram = require('dgram');\nconst IP = '192.168.1.1';\nconst PORT = 8888;\nconst socket = dgram.createSocket('udp4');\nsocket.on('listening', () =&gt; {\n    const address = socket.address();\n    console.log('UDP socket listening on ' + address.address + \":\" + address.port);\n});\nsocket.on('message', (message, remote) =&gt; {\n    console.log(remote.address + ':' + remote.port +' - ' + message);\n\t\/*\n\t\t\u51e6\u7406\n\t*\/\n});\nsocket.bind(PORT, IP);<\/pre>\n\n\n\n<p>\u3068\u304f\u306b\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5165\u308c\u308b\u4e8b\u306a\u304f\u3067\u304d\u307e\u3057\u305f\uff01JS\u7684\u306b\u6b63\u3057\u3044\u66f8\u304d\u65b9\u306a\u306e\u304b\u306f\u8b0e\u3002\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u306eOSC-route\u306a\u3069\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3001\u30c6\u30ad\u30b9\u30c8\u51e6\u7406\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u306e\u5341\u516b\u756a\u3067\u3057\u3087\u3046\u304b\u3089\u697d\u3061\u3093\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u611f\u60f3<\/h2>\n\n\n\n<p>\u6614\u3001VJ\u30bd\u30d5\u30c8\u306e\u3042\u306e\u30bf\u30b0\u3092\u3064\u304f\u308b\u305f\u3081\u306bMax\u306ejs object\u3092\u89e6\u3063\u3066\u3044\u305f\u9803\u306f\u3001js\u306e\u6587\u6cd5\u3092\u8aad\u3093\u3067\u578b\u306a\u3057\u3067\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u7d99\u627f\u3068\u304b\u96e3\u3057\u3044\u306a\u3068\u601d\u3044\u3001\u6df1\u5165\u308a\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u6642\u306f\u7d4c\u3061\u6700\u8fd1\u306ejs\u306f\u4eca\u3069\u304d\u306a\u6587\u6cd5\u304c\u8272\u3005\u3042\u3063\u3066\u4f7f\u3044\u3084\u3059\u304f\u306a\u3063\u3066\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Node.js\u3084npm\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306a\u3069\u3067\u306f\u5f53\u305f\u308a\u524d\u306e\u4e8b\u304c\u3001Max\u304a\u3058\u3055\u3093\u304b\u3089\u3059\u308b\u3068\u51c4\u3044\u307f\u305f\u3044\u306a\u4e8b\u306f\u975e\u5e38\u306b\u6ca2\u5c71\u3042\u308a\u305d\u3046\u3067\u3059\u3002\uff08Blog\u3092\u9069\u5f53\u306b\u653e\u7f6e\u3057\u3066\u308b\u4e8b\u304b\u3089\u5206\u304b\u308b\u3088\u3046\u306b\uff09\u4eca\u307e\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af \/ \u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u306f\u89e6\u308c\u306a\u3044\u3088\u3046\u306b\u751f\u304d\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u308d\u305d\u308dNode.js\u304b\u3089\u8272\u3005\u89e6\u3063\u3066\u307f\u3088\u3046\u304b\u306a\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Reference<\/h1>\n\n\n\n<ul><li>Node for Max Api Reference <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/docs.cycling74.com\/nodeformax\/api\/');\"  href=\"https:\/\/docs.cycling74.com\/nodeformax\/api\/\">https:\/\/docs.cycling74.com\/nodeformax\/api\/<\/a><\/li><li>\u3010Node.js 2021\uff082\u3064\u76ee\uff09\u3011 Node.js \u3067\u306e UDP\u30fbTCP\u901a\u4fe1\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u8a66\u3059\uff082021\u5e7412\u6708\uff09 <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/qiita.com\/youtoy\/items\/385feead64ff905e9f76');\"  href=\"https:\/\/qiita.com\/youtoy\/items\/385feead64ff905e9f76\">https:\/\/qiita.com\/youtoy\/items\/385feead64ff905e9f76<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Max\u306e\u751f\u547d\u7ddaUDP\u3067\u554f\u984c\u304c\u30fb\u30fb\u30fb \u30bb\u30f3\u30b7\u30f3\u30b0\u30843D\uff08Unity \/ UE \/ Arduino) \u7b49\u3068\u306e\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u6642\u306b\u91cd\u5b9d\u3059\u308budprecieve \u3067\u3059\u304c\u3001udp\u3092\u53d7\u4fe1\u3059\u308b\u5834\u5408\u306b\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u304c4bytes\u306b\u63c3\u3063\u3066 &hellip; <a href=\"https:\/\/mirror.boy.jp\/?p=2600\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Node for Max \u3092\u7528\u3044\u3066\u3001\u5b9a\u5f62\u5916\u306eUDP\u30c7\u30fc\u30bf\u3092\u53d7\u4fe1 #Max8 #n4m<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,26,123,115],"tags":[],"_links":{"self":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts\/2600"}],"collection":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2600"}],"version-history":[{"count":11,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts\/2600\/revisions"}],"predecessor-version":[{"id":2615,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=\/wp\/v2\/posts\/2600\/revisions\/2615"}],"wp:attachment":[{"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mirror.boy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}