|
From: Raphaël M. <rmo...@gm...> - 2014-02-10 11:33:28
|
hello, mididings would do that easily : http://das.nasophon.de/mididings/ on receive midi message, send shell command : echo "RESET CHANNEL 0" | nc localhost 8888 a complete script would look like : import sys sys.path.append('/usr/bin/mididings') from mididings import * run ( Filter(NOTEON) >> KeySplit({ 60: System(' echo "RESET CHANNEL 0" | nc localhost 8888'), 61: System(' echo "SET CHANNEL MUTE 1 1" | nc localhost 8888'), }) ) and voilà. Raphaël 2014-02-10 11:15 UTC+01:00, Stjepan Horvat <zva...@gm...>: > Hey guys.. > how complicated it would be to write a program that would recives midi > messages (convert them dependent on the config) and send LSCP commands.. > > the config would look like: > > "Byte 0 = 193, Byte 1 = 1" : "RESET CHANNEL 0" > "Byte 0 = 145, Byte 1 = 84, Byte 2 = 100" : "SET CHANNEL MUTE 1 1" > |