{"id":55,"date":"2008-01-07T16:59:47","date_gmt":"2008-01-08T00:59:47","guid":{"rendered":"http:\/\/evanlenz.net\/blog\/2008\/01\/07\/video-3-klavarskribo-game-with-midi-keyboard\/"},"modified":"2008-01-14T23:58:58","modified_gmt":"2008-01-15T07:58:58","slug":"video-3-klavarskribo-game-with-midi-keyboard","status":"publish","type":"post","link":"https:\/\/evanlenz.net\/blog\/2008\/01\/07\/video-3-klavarskribo-game-with-midi-keyboard\/","title":{"rendered":"Video #3: Klavarskribo game with MIDI keyboard"},"content":{"rendered":"<p>My <a href=\"http:\/\/www.roland.com\/products\/en\/UM-1EX\/index.html\">MIDI-to-USB adapter<\/a> arrived via UPS today, so I hooked it up to the Roland RD-600 that I&#8217;m borrowing from my wonderful neighbors. I&#8217;m pleased to see that it works right out of the box and I only needed to make one small modification to my code to make (what&#8217;s implemented of) the video game to work. (Whereas previously it was only expecting MIDI note off events to appear as &#8220;note on&#8221; with volume 0, now it will handle explicit &#8220;note off&#8221; events as well.)<\/p>\n<div class=\"flvPlayer\">\t\t\t\t<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,0,0\" width=\"320\" height=\"260\"><param name=\"movie\" value=\"https:\/\/media.dreamhost.com\/mediaplayer.swf?file=http:\/\/evanlenz.net\/blog\/wp-content\/uploads\/2008\/01\/klavarskribo3_320x240.flv&amp;autoStart=false;\" \/><param name=\"quality\" value=\"high\" \/><param name=\"wmode\" value=\"transparent\" \/><embed src=\"https:\/\/media.dreamhost.com\/mediaplayer.swf?file=http:\/\/evanlenz.net\/blog\/wp-content\/uploads\/2008\/01\/klavarskribo3_320x240.flv&amp;autoStart=false;\" quality=\"high\" wmode=\"transparent\" width=\"320\" height=\"260\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" \/><\/object><\/div>\n<p>(Please forgive the low recording quality. I was using one hand to hold the camera and one hand to play the keyboard.) As you can see, there&#8217;s a fairly significant delay between the sound (which is pretty immediate) of me striking a key and the visual (green or red) note response that appears on the screen. This is something I have to work on before the game will be close to release-worthy.<\/p>\n<p>Now that I have a functioning MIDI keyboard, I&#8217;m really motivated to get some real music in there (instead of these hard-coded notes that rise up the screen).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My MIDI-to-USB adapter arrived via UPS today, so I hooked it up to the Roland RD-600 that I&#8217;m borrowing from my wonderful neighbors. I&#8217;m pleased to see that it works right out of the box and I only needed to make one small modification to my code to make (what&#8217;s implemented of) the video game [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,9],"tags":[],"_links":{"self":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts\/55"}],"collection":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":0,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"wp:attachment":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}