Skip to contentSkip to conversation

Problems with virtual rawmidi

DISCUSSION Robert Vetter 2 participants 2 messages Mar 15, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I'm working on an MIDI application with ALSA support on LInux. I have problems with reading MIDI from virtual rawmidi device.

When I open the device (M-Audio Keystation 49e) in "pure" raw mode calling:

snd_rawmidi_open(&handle_in,NULL,"hw:1,0",0);

everything is ok and I can read the MIDI stream without problems. BUT when I create a virtual midi in port in my application calling:

snd_rawmidi_open(&handle_in,NULL,"virtual",0);

and connect midi out port from the Keystation to the midi port of the Application (using QJackctl), I get problems. Some bytes are skipped, as it looks like. For example: Right after everything is started and set up I press a key and keyboard and get only the status byte (0x90) and note number, but no velocity byte. Then when I release the key I don't get any status byte, but only note number and velocity byte( 0 in this case).

Could somoene please check it?

Thank you

Robert

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#1 lore raw
Quoted 9 lines · Robert Vetter

when I create a virtual midi in port in my application calling:

snd_rawmidi_open(&handle_in,NULL,"virtual",0);

and connect midi out port from the Keystation to the midi port of the Application (using QJackctl), I get problems. Some bytes are skipped, as it looks like. For example: Right after everything is started and set up I press a key and keyboard and get only the status byte (0x90) and note number, but no velocity byte.

Does the same happen with amidi? (try "amidi --dump --port virtual")

Quoted 2 lines

Then when I release the key I don't get any status byte, but only note number and velocity byte( 0 in this case).

This is running status, i.e., not a bug.

Regards,
Clemens

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV