Re: sending random midi notes from a bash script

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

 



On 6/2/2010, "David Santamauro" <david.santamauro@xxxxxxxxx> wrote:

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

Yes, thanks, perfect :)
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user

[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