Re: [Alsa-devel] Rawmidi mystery

2003-02-07 Thread Jaroslav Kysela
On Thu, 6 Feb 2003, Frank Neumann wrote: And YES, that did the trick! Thanks a lot, Clemens. Looks like the drain() takes a lot longer than I'd have expected (my thought was that it would return right after the last command bytes have been sent out, and that the incoming stream would be held

Re: [Alsa-devel] Rawmidi mystery

2003-02-07 Thread Clemens Ladisch
Frank Neumann wrote: PS: I checked with gettimeofday(): The snd_rawmidi_drain() takes about 47-49ms on my system..quite long, huh? I mean, the command sequence is just 7 bytes, that's about 2.24ms of raw MIDI transfer time.. There are two possibilities how the _drain() can be implemented: 1)

Re: [Alsa-devel] Rawmidi mystery

2003-02-07 Thread Jaroslav Kysela
On Fri, 7 Feb 2003, Clemens Ladisch wrote: Frank Neumann wrote: PS: I checked with gettimeofday(): The snd_rawmidi_drain() takes about 47-49ms on my system..quite long, huh? I mean, the command sequence is just 7 bytes, that's about 2.24ms of raw MIDI transfer time.. There are two

Re: [Alsa-devel] Rawmidi mystery

2003-02-06 Thread Clemens Ladisch
Frank Neumann wrote: Takashi Iwai [EMAIL PROTECTED] wrote: just to be sure: any realtime events can come in? No, I checked that. The M3r sends active sensing (0xfe), but I filtered that out. In the data I get the only MIDI bytes 0x7f are the F0 at the start and the 0xF7 at the very end.

Re: [Alsa-devel] Rawmidi mystery

2003-02-06 Thread Frank Neumann
Hi again list, Clemens Ladisch [EMAIL PROTECTED] wrote: [..] No, I checked that. The M3r sends active sensing (0xfe), but I filtered that out. In the data I get the only MIDI bytes 0x7f are the F0 at the start and the 0xF7 at the very end. Also, I think a SysEx message cannot be

Re: [Alsa-devel] Rawmidi mystery

2003-02-05 Thread Takashi Iwai
Hi Frank, At Wed, 5 Feb 2003 00:34:41 +0100, Frank Neumann wrote: Hi list, I have written a small helper program (for myself so far) that should allow me to get a backup of all data from a Korg M3r expander through the ALSA rawmidi API. I have written a first version that opens the

Re: [Alsa-devel] Rawmidi mystery

2003-02-05 Thread Frank Neumann
Hi list, Takashi Iwai [EMAIL PROTECTED] wrote: [..] Normally, according to the M3r's SysEx implementation in its manual, this should give the same output, exactly 23963 bytes. However, the second version loses about 130 bytes during the transfer. The strange thing is that the beginning

[Alsa-devel] Rawmidi mystery

2003-02-04 Thread Frank Neumann
Hi list, I have written a small helper program (for myself so far) that should allow me to get a backup of all data from a Korg M3r expander through the ALSA rawmidi API. I have written a first version that opens the rawmidi device, tells the user to start the dump on the M3r, and then waits for