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

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

 



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

[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