ばね指(MIDIタブレット)を持っていて、その入力をライブで読み取り、押されたキーに応じてPythonにアクションを実行させたいと考えています。
私はそれをWindowsに必要とし、できればpython2.5+で動作します
ありがとう
PyGameには、 Linux、Windows、MacOSで利用可能なMIDIモジュールが組み込まれており、非常によくサポートされています。
たとえば、pygame.midi.Inputのドキュメントは次のとおりです。
Input is used to get midi input from midi devices.
Input(device_id)
Input(device_id, buffer_size)
Input.close - closes a midi stream, flushing any pending buffers. closes a midi stream, flushing any pending buffers.
Input.poll - returns true if there's data, or false if not. returns true if there's data, or false if not.
Input.read - reads num_events midi events from the buffer. reads num_events midi events from the buffer.
別の方法を探している場合は、 PythonwikiのPythonInMusicをご覧ください。
そこにはMIDI入出力に関連するさまざまなプロジェクトがあり、Windows用のものもあります。(各プロジェクトの後にある小さな>記号をクリックして、プロジェクトのホームページへのリンクをたどります)
私はそれらのどれも個人的に使用していませんが、それはあなたが始めるのに役立つと確信しています。