PortMidiSharp.cs updated

| No Comments | No TrackBacks
昨日の続き。まだWindowsでのみ行っている。

まず、音が鳴るようなサンプルがportmidiに含まれていたので、それを簡単にしたやつをC#で書き直してみた。
http://monoport.com/38988

これを動かすには、昨日ここに載せたPortMidiSharp.csの更新版が必要になる。
PortMidiSharp.cs

実行したらめでたく音が鳴った。というわけで、ついでに上記P/Invokeラッパーをいくつか追加して、簡単な部分のバインディングとしてはとりあえず機能するようにした。MIDI入力デバイスは、繋いだことがないため、どこまで動作するものかは分からないが、多分動作するのではないだろうか。

次の目標は、Linux上で共有ライブラリをビルドして、これをmono経由でPortMidiSharpを使って叩いてみることである。soさえ出来れば動くだろう。と思いたい。

No TrackBacks

TrackBack URL: http://veritas-vos-liberabit.com/noteon/mt-tb.cgi/3

Leave a comment

About this Entry

This page contains a single entry by note on published on January 7, 2009 10:16 PM.

creating portmidi.dll was the previous entry in this blog.

autotoolized pm_linux is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories

Pages

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.23-en