{"id":500,"date":"2012-05-20T22:16:00","date_gmt":"2012-05-20T13:16:00","guid":{"rendered":"http:\/\/www.rainyman.net\/nest\/?p=500"},"modified":"2021-08-02T20:45:49","modified_gmt":"2021-08-02T11:45:49","slug":"arduino%e3%81%a7psg%e9%9f%b3%e6%ba%90%e3%82%92%e5%bc%84%e3%82%8b%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/blog.rainyman.jp\/nest\/?p=500","title":{"rendered":"Arduino\u3067PSG\u97f3\u6e90\u3092\u5f04\u308b\u30e1\u30e2"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#YMZ294\"><span class=\"toc_number toc_depth_1\">1<\/span> YMZ294\u95a2\u9023<\/a><\/li><li><a href=\"#MIDI\"><span class=\"toc_number toc_depth_1\">2<\/span> MIDI\u30b7\u30fc\u30eb\u30c9<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">3<\/span> \u4f59\u8ac7<\/a><ul><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_2\">3.1<\/span> \u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u306f\u6848\u5916\u30c7\u30ea\u30b1\u30fc\u30c8<\/a><\/li><li><a href=\"#Arduino\"><span class=\"toc_number toc_depth_2\">3.2<\/span> Arduino\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u30e1\u30e2\u30ea\u306b\u914d\u5217\u3092\u914d\u7f6e\u3059\u308b<\/a><\/li><\/ul><\/li><\/ul><\/div>\n<p>\u3053\u3063\u305d\u308a\u3053\u3093\u306a\u30e2\u30ce\u3092\u4f5c\u3063\u3066\u307e\u3057\u305f\uff0e<\/p>\n\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/AXJ6xfDLVoI\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n\n<p>\u53c2\u8003URL\u306a\u3069\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\uff0e\u6c17\u304c\u5411\u3044\u305f\u3089\u30b9\u30b1\u30c3\u30c1\u3092\u516c\u958b\u3059\u308b\u304b\u3082\uff0e<\/p>\n\n<h2><span id=\"YMZ294\">YMZ294\u95a2\u9023<\/span><\/h2>\n\n<p>YMZ294\u306f<a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gI-00181\/\">\u79cb\u6708\u3067\u624b\u306b\u5165\u308b<\/a>PSG\u97f3\u6e90\u3067\uff0cMSX\u7b49\u306b\u8f09\u3063\u3066\u3044\u305f\u30e2\u30ce\u76f8\u5f53\u54c1\u3089\u3057\u3044\uff0e\n\u7d50\u69cb\u307e\u3048\u304b\u3089\u5b89\u5b9a\u7684\u306b\u624b\u306b\u5165\u308b\u30e2\u30ce\u306e\u3088\u3046\u3067\uff0cPIC\u3068\u304bArduino\u3068\u304b\u3067\u9cf4\u3089\u3057\u3066\u304a\u3089\u308c\u308b\u5148\u9054\u65b9\u3005\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\uff0e<\/p>\n\n<ul>\n<li><a href=\"http:\/\/hijiri3.s65.xrea.com\/sorekore\/develop\/pic\/PIC04_YMZ.htm\">YMZ294\u3067\u697d\u3057\u3080PSG\u97f3\u6e90<\/a><\/li>\n<li><a href=\"http:\/\/mbin.jp\/~masa-u\/electron\/ymz294\/\">YMZ294 &#8211; SSG\u97f3\u6e90\u30dc\u30fc\u30c9<\/a>\n\n<ul>\n<li>YMZ294 x4\u3067\u97f3\u6e90\u30dc\u30fc\u30c9\u3092\u4f5c\u3063\u305f\u65b9\u306e\u8a18\u4e8b\uff0e\u56de\u8def\u56f3\u306e\u5f8c\u6bb5\u306e\u30aa\u30da\u30a2\u30f3\u30d7\u5468\u308a\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\uff0e<\/li>\n<\/ul><\/li>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/kazuya_a\/20090625\">2009-06-25 &#8211; kazuya_a\u306e\u65e5\u8a18 OpenGL\u3068\u304bScheme\u3068\u304b<\/a><\/li>\n<li><a href=\"http:\/\/iorivr.b.sourceforge.jp\/2010\/11\/01\/%E8%B6%85%E9%AB%98%E9%80%9F%EF%BC%9Fymz294%E3%81%84%E3%82%8D%E3%81%84%E3%82%8D%E3%83%8D%E3%82%BF%E3%82%A2%E3%83%B3%E3%83%97\/\">\u8d85\u9ad8\u901f\uff1fYMZ294\u3044\u308d\u3044\u308d(\u30a2\u30bb\u30f3\u30d6\u30ea\u8aad\u66f8) \u5426\u5b9a\u7684\u306a\u3082\u306e\u306f\u6020\u60f0\u306e\u4e2d\u3067\u306f\u7e41\u6b96\u3059\u308b<\/a>\n\n<ul>\n<li>\u6700\u521dfsc\u306e\u5024\u3092\u8aa4\u89e3\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u6dfb\u4ed8\u306e4MHz\u30aa\u30b7\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u5834\u5408\u306f2000000\u3067\u3044\u3044\u3088\u3046\u3067\u3059\uff0e<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p>\u79c1\u306f\u30aa\u30da\u30a2\u30f3\u30d7\u306e\u4f7f\u3044\u65b9\u3092\u3088\u304f\u5206\u304b\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u304c(\u6c57)\uff0c\u3053\u306e\u90e8\u5206\u304cYMZ294\u306e\u97f3\u3092\u5408\u6210\u3057\u3066\u3055\u3089\u306b\u30ed\u30fc\u30d1\u30b9\u30d5\u30a3\u30eb\u30bf\u3068\u3057\u3066\u4f5c\u7528\u3057\u3066\u3044\u308b\uff0c\u3093\u3067\u3057\u3087\u3046\u304b\u2026\uff08\u3053\u306e\u90e8\u5206\u3092\u4ecb\u3055\u306a\u3044\u3068\u304d\u308c\u3044\u306b\u9cf4\u3089\u306a\u3044\uff09<\/p>\n\n<h2><span id=\"MIDI\">MIDI\u30b7\u30fc\u30eb\u30c9<\/span><\/h2>\n\n<p>\u6700\u521d\u306fMIDI\u306e\u30c7\u30fc\u30bf\u3092\u5909\u63db\u3057\u3066Arduino\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u30e1\u30e2\u30ea\u306b\u76f4\u63a5\u713c\u304d\u8fbc\u3093\u3067\u305f\u306e\u3060\u3051\u3069\uff0c\u9014\u4e2d\u304b\u3089MIDI\u30b7\u30fc\u30eb\u30c9\u3092\u4f7f\u3063\u3066MIDI\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\nPC\u304b\u3089\u9001\u3063\u3066\u9cf4\u3089\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u305f\uff0e<\/p>\n\n<ul>\n<li><a href=\"http:\/\/www.midiox.com\/\">MIDI-OX<\/a>\n\n<ul>\n<li>MIDI\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3057\u305f\u308aPC\u5185\u3067MIDI-IN\uff0cMIDI-OUT\u3092\u7d50\u7dda\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2<\/li>\n<\/ul><\/li>\n<li><a href=\"http:\/\/www.funaba.org\/en\/ruby.html#smf\">Ruby &#8211; Standard MIDI File module<\/a>\n\n<ul>\n<li>Ruby\u3067MIDI\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u51fa\u3059\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea<\/li>\n<\/ul><\/li>\n<li><a href=\"http:\/\/www.sparkfun.com\/products\/9598\">MIDI Breakout &#8211; SparkFun Electronics<\/a><\/li>\n<li><a href=\"http:\/\/www.midi.org\/techspecs\/midimessages.php\">MIDI Message Table 1<\/a>\n\n<ul>\n<li>MIDI\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u4ed5\u69d8\uff0eNote ON\u3068\u304bNote OFF\u306e\u3068\u304d\u306b\u8907\u6570\u306e\u30ce\u30fc\u30c8\u304c\u6765\u308b\u5834\u5408\uff0c\u30ce\u30fc\u30c8\u30ca\u30f3\u30d0\u30fc\u3068\u30d9\u30ed\u30b7\u30c6\u30a3\u304c\u9023\u7d9a\u3057\u3066\u304f\u308b\uff0c\u3068\u3044\u3046\u3042\u305f\u308a\u3092\u7406\u89e3\u3057\u3066\u7121\u304f\u3066\u30cf\u30de\u3063\u305f\u306e\u306f\u5185\u7dd2\uff0e<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h2><span id=\"i\">\u4f59\u8ac7<\/span><\/h2>\n\n<h3><span id=\"i-2\">\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u306f\u6848\u5916\u30c7\u30ea\u30b1\u30fc\u30c8<\/span><\/h3>\n\n<p><img src=\"wp-content\/uploads\/2012\/05\/IMG_0467_resized-300x225.jpg\" alt=\"\u30b8\u30e3\u30f3\u30d7\u30ef\u30a4\u30e4\u306e\u68ee\" \/><br \/>\n\u7d50\u69cb\u306a\u914d\u7dda\u91cf\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e\u4e2d\u76e4\u304b\u3089\u306f\u30d4\u30f3\u30bb\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u614e\u91cd\u306b\u914d\u7dda\u3057\u307e\u3057\u305f\uff0e<\/p>\n\n<p>\u3055\u3059\u304c\u306b\u3053\u306e\u30ec\u30d9\u30eb\u306b\u306a\u308b\u3068\u3061\u3087\u3063\u3068\u89e6\u3063\u305f\u3060\u3051\u3067\u30d0\u30b9\u306b\u63a5\u89e6\u4e0d\u826f\u304c\u751f\u3058\u305f\u308a\u3057\u3066\u5927\u5909\u3067\u3057\u305f\uff0e<br \/>\n\u3042\u3068GND\u306b\u4f7f\u3046\u30b8\u30e3\u30f3\u30d7\u30ef\u30a4\u30e4\u3092\u8907\u6570\u5f35\u3063\u3066\u304a\u304b\u306a\u3044\u3068\u96fb\u6d41\u5bb9\u91cf\u304c\u8db3\u3089\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\n\n<p>\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f+\u30b9\u30ba\u30e1\u30c3\u30ad\u7dda\u3067\u3061\u3083\u3093\u3068\u3057\u305f\u30dc\u30fc\u30c9\u306b\u3057\u305f\u3044\u3051\u3069\u5927\u5909\u305d\u3046\u3067\u3059\uff0e<\/p>\n\n<h3><span id=\"Arduino\">Arduino\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u30e1\u30e2\u30ea\u306b\u914d\u5217\u3092\u914d\u7f6e\u3059\u308b<\/span><\/h3>\n\n<p>\u6700\u521d\u306f\uff0cMIDI\u30c7\u30fc\u30bf\u3092\u5909\u63db\u3057\u3066Arduino\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u30e1\u30e2\u30ea\u306b\u914d\u5217\u3068\u3057\u3066\u713c\u304d\u8fbc\u3093\u3067\u305f\u3093\u3060\u3051\u3069\uff0c\u305d\u308c\u306b\u95a2\u9023\u3059\u308b\u8a71\u984c\uff0e<\/p>\n\n<p><a href=\"http:\/\/seeedstudio.com\/wiki\/2.8%27%27_TFT_Touch_Shield\">2.8&#8221; TFT TouchShield<\/a>\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u306a\u304b\u3067\u898b\u304b\u3051\u305f\u306e\u3060\u3051\u3069\n\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u3092\u3059\u308b\u3068\u914d\u5217\u3092Arduino\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u30e1\u30e2\u30ea\u306b\u914d\u7f6e\u3067\u304d\u308b\u307f\u305f\u3044\uff0e<\/p>\n\n<div><pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\n#include &lt;avr\/pgmspace.h&gt;\n\nint hogeData[] = PROGMEM {\n  \/* ... *\/\n};\n\nvoid func()\n{\n    \/* \u8aad\u307f\u8fbc\u3080\u3068\u304d *\/\n    int someData = pgm_read_word(&amp;hogeData[0]); \n}\n<\/pre><\/div>\n\n<p>\u3053\u306e\u65b9\u6cd5\u306a\u3089\u304b\u306a\u308a\u5927\u304d\u3044\u914d\u5217\u3067\u3082\u713c\u304d\u8fbc\u3081\u308b\u3088\u3046\u3067\u3059\uff0e<br \/>\n2.8&#8221; Touch Shield\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u306f8&#215;8\u306eASCII\u30d5\u30a9\u30f3\u30c8\u3092\u3053\u306e\u65b9\u6cd5\u3067\n\u683c\u7d0d\u3057\u3066\u3044\u307e\u3057\u305f\uff0e\u305f\u3060\uff0c\u30d7\u30ed\u30b0\u30e9\u30e0\u30e1\u30e2\u30ea\u3092\u98df\u3044\u3064\u3076\u3059\u3088\u3046\u306a\u30c7\u30ab\u30a4\u3082\u306e\u306f\u5f53\u7136\u5f3e\u304b\u308c\u308b\u307f\u305f\u3044\u3067\u3059\n(Arduino UNO(ATMega328P)\u306a\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u30e1\u30e2\u30ea\u306f32KB\uff0e\u5b9f\u969b\u306f28KB\u304f\u3089\u3044\u3057\u304b\u713c\u304d\u8fbc\u3081\u306a\u3044)\uff0e<\/p>\n\n<p>\u53c2\u8003:<br \/>\n<a href=\"http:\/\/www.nongnu.org\/avr-libc\/user-manual\/group__avr__pgmspace.html\">&lt;avr\/pgmspace.h&gt;: Program Space Utilities<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6b211 YMZ294\u95a2\u90232 MIDI\u30b7\u30fc\u30eb\u30c93 \u4f59\u8ac73.1 \u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u306f\u6848\u5916\u30c7\u30ea\u30b1\u30fc\u30c83.2 Arduino\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u30e1\u30e2\u30ea\u306b\u914d\u5217\u3092\u914d\u7f6e\u3059\u308b \u3053\u3063\u305d\u308a\u3053\u3093\u306a\u30e2\u30ce\u3092\u4f5c\u3063\u3066\u307e\u3057\u305f\uff0e \u53c2\u8003URL\u306a\u3069\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\uff0e\u6c17\u304c [&hellip;]<\/p>","protected":false},"author":2,"featured_media":595,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=\/wp\/v2\/posts\/500"}],"collection":[{"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500"}],"version-history":[{"count":18,"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":527,"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions\/527"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=\/wp\/v2\/media\/595"}],"wp:attachment":[{"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rainyman.jp\/nest\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}