Peter Billam wrote:
> So: What's the way to feed real-time MIDI events into
> the Linux/ALSA setup from a Perl or Python program ?
standard output to standard input?
> (I've generated lots of .mid files and fed them into aplaymidi
> and timidity, but I've not generated any real-time MIDI yet :-()
I've never tried what you're discussing here, but it seems that with
a file name of "-", aplaymidi (at least; I haven't checked timidity)
will read from standard input. Pipe the output of your Perl/Python
script (in the format of a .mid file) to standard input of aplaymidi
and see if that provides the result you're after.
I hope that helps ...
--
----------------------------------------------------------------------
Sylvain Robitaille
(E-Mail Removed)
Systems analyst / AITS Concordia University
Faculty of Engineering and Computer Science Montreal, Quebec, Canada
----------------------------------------------------------------------