{"blog_url":"https://mzp.hatenadiary.org/","height":"190","width":"100%","categories":["LastEmpere","Ruby"],"title":"Ruby/SDL\u3067MIDI\u304c\u518d\u751f\u3067\u304d\u306a\u3044","author_url":"https://blog.hatena.ne.jp/mzp/","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20051129%2F1133261422\" title=\"Ruby/SDL\u3067MIDI\u304c\u518d\u751f\u3067\u304d\u306a\u3044 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2005-11-29 19:50:22","description":"require 'sdl' filename = 'sample.mid' SDL.init( SDL::INIT_AUDIO ) SDL::Mixer.open SDL::Mixer.allocateChannels(100) sound_handler = SDL::Mixer::Music.load(filename) sound_handler = SDL::Mixer::Music.load(filename) SDL::Mixer.playMusic(sound_handler,0) while true sleep 1.0/300 endid:selvaggio\u304c\u304c\u3093\u3070\u3063\u3066\u8ffd\u8de1\u4e2d\u2026","author_name":"mzp","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","version":"1.0","url":"https://mzp.hatenadiary.org/entry/20051129/1133261422","provider_url":"https://hatena.blog","image_url":null}