<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fgshun</author_name>
  <author_url>https://blog.hatena.ne.jp/fgshun/</author_url>
  <blog_title>銀月の符号</blog_title>
  <blog_url>https://fgshun.hatenablog.com/</blog_url>
  <categories>
    <anon>MIDI</anon>
    <anon>Python</anon>
  </categories>
  <description>おーぷんMIDIぷろじぇくと を先日発見。これ Python から使えると便利な気がしてきた。気のせいかも？ DLL の形式でも公開されているため、とりあえず ctypes つかえばベタなラッパーは何も考えずに書ける。たとえば MIDIIOライブラリならこんな感じ。でもベタなままだと C と大差ない、なら C から使おうよってことにもなる。 Python らしくするためにも一工夫加える必要あり。整数 1, 0 返して正常異常を知らせる関数は失敗時に例外を送出にしたりとか（これは ctypes のみで可能）、ポインタ複数渡して値を複数受け取るための関数は普通にリストに値まとめて返すようにしたり（…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffgshun.hatenablog.com%2Fentry%2F20090312%2F1236829691&quot; title=&quot;おーぷんMIDIぷろじぇくと、なるもの発見 - 銀月の符号&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-03-12 12:48:11</published>
  <title>おーぷんMIDIぷろじぇくと、なるもの発見</title>
  <type>rich</type>
  <url>https://fgshun.hatenablog.com/entry/20090312/1236829691</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
