Bob Peters wrote:
> All I am trying to do is connect the midi keyboard and output the
> resultant stream produced (when pressing a note) to the console

You can access the device file directly with read() or write(), try
"od -t x1 /dev/midix" (OSS) or "od -t x1 /dev/snd/midiCxD0" (ALSA).
However, this will open the first available port, so you'd better use the
functions from the ALSA library.

> Does anyone have a code example (small C program) or just an explanation
> of how to go forward from here

Have a look at alsa-lib/test/rawmidi.c and
<http://www.alsa-project.org/alsa-doc/alsa-lib/rawmidi.html>.


HTH
Clemens



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to