Re: MIDI to systemcommand, exute script etc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 08 November 2008 22:31:51 Nils Gey wrote:
> Do you know any ways to receive midi events to start programms, execute
> shell-scripts or using other things you normaly do with your
> computer-keyboard and shortcuts?

This is one of the things mididings (http://das.nasophon.de/mididings/) was 
made for.
For example, the following Python script would listen on an ALSA MIDI port, 
and run different shell commands in response to note-on events:

from mididings import *

run(
    Filter(NOTEON) >> KeySplit({
        60: System('foo'),
        61: System('bar'),
        ...
    })
)
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux