>       Can anyone give me a hint at writing a simple
> program to read MIDI keyboard input? I don't want to parse
> this input, just to test the presence of the keyboard under
> Linux.
> 
>       Taras

dd bs=1 if=/dev/midi | od -t x1 --width=1

..works for me.  I strike a key and get:

0000000 fe
*
0000020 90
0000021 5d
0000022 35
0000023 fe
0000024 90
0000025 5d
0000026 00
0000027 fe
*

which is a bunch of activie sensing bytes, a note-on/note-off pair and
more active sensing bytes. :)

E
  • MI... =F4=C1=D2=C1=D3?= �. =?ISO-8859-1?Q?=E7=C1=CC=D8=DE=C5=CE=CB=CF
    • ... est
      • ... =F4=C1=D2=C1=D3?= �. =?ISO-8859-1?Q?=E7=C1=CC=D8=DE=C5=CE=CB=CF

Reply via email to