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 <zvanste...@gmail.com>:
> 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"
>

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to