[LAD] sequencer and sysex again

Fons Adriaensen fons at kokkinizita.net
Sat Jun 7 11:14:34 UTC 2008

On Sat, Jun 07, 2008 at 12:20:23AM +0200, rdxesy at yahoo.de wrote:

> ...
> note that this just asks for params 512-639 (the first loop 
> of the previous posting is commented)
> so, after receiving param 590 i receive only every fifth or 
> fourth param, the rest is gone void.
> this is repeatable, everytime. i receive every single param 
> correctly until and including param 590, then i receive 
> params with jumps in between, 4 or five params big.

This could be either the request or the reply
getting lost. The way to find out is to check
the replies using a completely separate receiver
or any other way to monitor a physical midi stream.

> when i add back usleep(10000); to the request loop, i get 
> all params in correct order but only up and including to 
> param 612. repeatable, always.

This could well be due to entirely different causes as the
first problem.
I'd first try to get the version with the usleep() working,
and then attack the other problem.

Could you try to remove *all* interaction with gtk in
midi_callback(). Just print the received events with
printf() and run your app from a terminal.



Laboratorio di Acustica ed Elettroacustica
Parma, Italia

Lascia la spina, cogli la rosa.

More information about the Linux-audio-dev mailing list