[LAU] MIDI controllable video player

Christopher Arndt chris at chrisarndt.de
Wed May 4 14:58:53 UTC 2016


Am 04.05.2016 um 15:11 schrieb Robin Gareus:
> To make allow midi-keyboard interaction various midi to OSC solutions
> are available e.g. OSC2MIDI [3], or jackmidi2osc [4],...

Michael, even if you're not into Python, I just want to show you and
others interested in it, how easy it is to write a little script with
python-rtmidi and pyliblo [1] that reacts to incoming MIDI data and
sends out an OSC message whenever it receives a Note On message:

https://gist.github.com/SpotlightKid/593e393e729a9017b0ea3ac03be91e1d

This can be easily adpated and extended to your needs. The advantage
over the solutions mentioned by Robin is that python-rtmidi works on
Linux, OS X and Windows and with ALSA, JACK, CoreMIDI and Windows MM.
[2] A disadvantage is that Python is garbage-collected, so it is not
suited for absolutely timing critical applications. But this only
applies if you're concerned about jitter in the microsecond range (which
is a bit pointless with the speed of MIDI).


Chris

[1] http://das.nasophon.de/pyliblo/
[2] Not sure whether pyliblo works on OS X or Win, but other pure-python
OSC libraries exist.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 979 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20160504/7d592334/attachment.pgp>


More information about the Linux-audio-user mailing list