Re: Re: Reading MIDI Program Change with bash script

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

 



It is very simple.  I want to connect a MIDI program
change to a shell script execution.  For example, if
MIDI program change 5 is detected, it would run a
shell script that plays a file with ecasound or
ogg123; if program change 2 is detected, a shell
script would execute an ecasound chain.

Four requirements:
1) Associate MIDI program change numbers with
arbitrary files.

2) Listen on a MIDI channel for a MIDI program change
event.

3) When a program change is detected, execute the file
associated with the received program number.

4) After file is launched, return to listening mode
and wait for another program change.

To allow MIDI sequencer output triggered by a program
change, it would be nice for the the listener on the
MIDI-In be assigned a channel, but allow global
playback of MIDI-Out on all MIDI channels.

Why bash/shell scripts?  I need the Linux distro to be
small, fast, and able to run on recycled hardware or a
flash drive.  It may also run headless, or with a very
small display.

So far, the hardest part appears to be getting the
MIDI Channel and program change info.

--- Carlo Capocasa <capocasa@xxxxxxx> wrote:

> I don't think there's anything available but I could
> code you a small
> utility if you like, sounds like a fairly
> straight-forward task...
> 
> What exactly do you want to use it for?
> 
> Carlo
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[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