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

From: David Santamauro <david.santamauro@email-addr-hidden>
Date: Sat Feb 06 2010 - 17:44:00 EET

On Sat, 6 Feb 2010 14:46:19 +0000 (GMT)
"james morris" <james@email-addr-hidden-art.net> 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?
>
> 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?

# play middle C for 2 seconds
# on channel 1 then turn it off
amidi -p hw:1,0 -S "90 3C 7F" \
sleep 2 \
amidi -p hw:1,0 -S "90 3C 00"

Replace your port as needed...

Hope that helps.

David
_______________________________________________
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:01 2010

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