Clemens Ladisch wrote:
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 consoleYou 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 hereHave a look at alsa-lib/test/rawmidi.c and <http://www.alsa-project.org/alsa-doc/alsa-lib/rawmidi.html>. HTH Clemens