[LAU] MIDI controllable video player

Christopher Arndt chris at chrisarndt.de
Wed May 4 11:15:23 UTC 2016


Am 04.05.2016 um 12:23 schrieb Michael Jarosch:
> For my work as an event technician, the use of an MIDI-controllable
> video player would ease my life. I don't mean xjadeo, which can sync to
> mtc - wich is cool, but doesn't fit to my setup. I mean something like
> playing a note on a keyboard signals the player to play, pause or stop
> the video, another note to switch to the next video in the playlist,
> and so on...

This should be trivial to implement using mididings:

http://das.nasophon.de/mididings/

Mididings has a unit named "Call", which allows you to call a Python
function. With this you could just use Python's subprocess module to
call vlc with the appropriate command line option to activate the
function you want.

http://das.nasophon.de/mididings/doc/units.html#calls


Or, if you prefer a more direkt approach, you could also use my Python
MIDI library, which includes an example, which shows how to execute
programs on receiving certain MIDI messages:

https://github.com/SpotlightKid/python-rtmidi/tree/master/examples/midi2command


HTH, Chris

-------------- 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/bdc6ae0d/attachment.pgp>


More information about the Linux-audio-user mailing list