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

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] using cat to send a MIDI string ?
From: Hans Fugal (fugalh_AT_gmail.com)
Date: Wed Sep 22 2004 - 02:26:16 EEST


> > 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.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Sep 22 2004 - 02:31:17 EEST