[linux-audio-user] using cat to send a MIDI string ?

Hans Fugal fugalh at gmail.com
Tue Sep 21 19:26:16 EDT 2004


> >   I know this is possible but I can't remember how. I want to send this
> > string to a MIDI device:
> >
> >     f0 7f f7 06 02 f7
> >
> >   Anyone know the command syntax ?
> >
> 
> echo "f0 7f f7 06 02 f7" > /dev/midifoo

Except he probably wanted to send the hex values and not that exact string.

fugalh at gwythaint:~$ printf '\xf0\x7f\xf7\x06\x02\xf7' | xxd
0000000: f07f f706 02f7                           ......

That's not the prettiest, but it works. 

-- 
De gustibus non disputandum est.



More information about the Linux-audio-user mailing list