Re: [LAU] sending random midi notes from a bash script

From: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas@email-addr-hidden>
Date: Sat Feb 06 2010 - 19:33:34 EET

On Saturday, February 6, 2010, james morris wrote:
> I want to send a random midi note each time a bash script is called...
>
> Not for anything useful, just experimenting...
>
> I guess the tool would best be connecting to a midi-through port rather
> than hard-coding a particular synth?

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.
> The note to be sent should be specifiable on command line, along with
> length/velocity ... probably would be enough.
>
> Any ideas?

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-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user

Received on Sat Feb 6 20:15:02 2010

This archive was generated by hypermail 2.1.8 : Sat Feb 06 2010 - 20:15:02 EET