I'm looking for a way to check for MIDI input from /dev/midi without
blocking the program flow. I need a word  midi-in? ( -- flag ) that
tells me if there's at least one byte input on the device. Anton
gave me some suggestions and  key?-file ( wfileid -- flag )  seemed
to work very well for that.

After doing some testing I have found that there are still problems
which I have a very hard time to debug.

I guess, that  key?-file ( wfileid -- flag )  should return TRUE if
it is possible to read at least one byte from the file. Is this right?
(I do not understand the name, so maybe I made wrong assumptions about
the function of the word).  Is there a special treatment of an input
byte with value zero?

It looks to me as if key?-file would sometimes return FALSE even when
there *is* a byte with value zero at /dev/midi. From this point on
key?-file would always return FALSE even if I send other (non zero)
bytes through the MIDI input to /dev/midi.

I used all my debugging tricks to find the flaw in my program, but
wasn't able yet to find the bug...

Robert Epprecht

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to