<div dir="ltr"><div><div><div>ace! <br></div>thank you all for the replies!<br></div>i'll get into it the following days.<br></div>I did not mention that before - it still shouldn't change much - I hope these can work in a headless environment. right?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 2, 2014 at 1:30 PM, Tito Latini <span dir="ltr"><<a href="mailto:tito.01beta@gmail.com" target="_blank">tito.01beta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sun, Nov 02, 2014 at 12:27:44AM +0200, Athanasios Silis wrote:<br>
> hello there,<br>
> is there an application that I am missing that allows programming execution<br>
> of arbitrary bash scripts (or others) following pressing specific midi<br>
> notes?<br>
> googling about it did not provide any results..<br>
><br>
> Thank you for your help<br>
<br>
</div></div>A shell script could be enough. The follow example uses `amidi'<br>
with a virtual rawmidi port:<br>
<br>
#!/bin/bash<br>
# midistraggo<br>
<br>
do_something()<br>
{<br>
case $1 in<br>
3C) play doooo.wav & ;;<br>
3E) play reeee.wav & ;;<br>
40) play miiii.wav & ;;<br>
41) play faaaa.wav & ;;<br>
*) play boooo.wav & ;;<br>
esac<br>
}<br>
<br>
amidi -p virtual -d | while read -n2 st; do<br>
if [[ ${st} == 90 ]]; then<br>
read -n3 key<br>
do_something ${key}<br>
fi<br>
done<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-user" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-user</a><br>
</div></div></blockquote></div><br></div>