MIDI到OSC网关
quatorzeheures的Python项目详细描述
使用amidi转储所有MIDI源(需要 alsa-utils包)将MIDI字节作为OSC UDP流发送 /midi/<device> <midi bytes>。
功能:
- Generate a single OSC stream from multiple MIDI sources
- Handle live new connections and disconnections of MIDI sources
示例:
$ quatorzeheures 192.168.1.42:1214 2016-08-12 02:47:44,653 stream OSC to udp://192.168.1.42:1214 2016-08-12 02:47:44,662 connect Akai MPD18 MIDI 1 on port hw:2 2016-08-12 02:47:49,223 Akai MPD18 MIDI 1 [176, 7, 37] --> '/midi/Akai_MPD18_MIDI_1\x00,iii\x00\x00\x00\x00\x00\xb0\x00\x00\x00\x07\x00\x00\x00%' 2016-08-12 02:47:49,223 Akai MPD18 MIDI 1 [144, 10, 32] --> '/midi/Akai_MPD18_MIDI_1\x00,iii\x00\x00\x00\x00\x00\x90\x00\x00\x00\n\x00\x00\x00 '
与pureData一起使用
安装
Debian Jessie套餐
Debian打包在debian/unstable branch中完成,并且 在我的Jessie Backports存储库中提供(用于i386、AMD64和ARMHF 架构):
wget -q -O - https://apt.philpep.org/951808A4.asc | sudo apt-key add - echo "deb http://apt.philpep.org jessie-backports main" | sudo tee /etc/apt/sources.list.d/philpep.list sudo apt-get update sudo apt-get install quatorzeheures
包附带一个启用了systemd服务quatorzeheures的目标主机 可以在/etc/default/quatorzeheures中自定义。
PIP
pip install quatorzeheures