On Saturday, February 6, 2010, james morris wrote:
In addidion to the "amidi" ALSA raw midi utility that has been suggested, you
can also easily write from a bash script to character devices, either the OSS
(/dev/midi*) or the ALSA ones (/dev/snd/midiC*). You can even create a
virtual MIDI port using the ALSA module snd-virmidi, so you can write chars
to a /dev/midi* node and connect the other side (the ALSA sequencer port) to
a synth.
> The tool would just be required to send a single midi note to some port.
As an example, here is a bash script that can be used with cron, to play
hourly a tune and some strokes.
Regards,
Pedro
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.