From: Joe E. <jo...@em...> - 2005-05-18 00:17:29
|
Joe Emenaker wrote: >I'm pretty sure that I can overhaul this and make it pretty slick, >without all of this 10ms looping, and, in the process, put in support >for MidiMessageFilters and reception of messages other than sysex ones. > > Well, it turned out to be easier than I had feared. I've now got a midi input queue system that doesn't have to do any polling. The queues notify any observers as messages come in. It will be easy, from here, to add support for midi message filters on a per-observer basis, so we could do things like... let the MidiMonitor be notified of all messages, yet let SysexGetDialog only be notified of sysex messages, etc. Another thing I plan to do soon is to add a "thru-filter". I'm currently experimenting with a rackmount effects unit which seems to merge all incoming messages through the out. So, when I request a patch from the unit, the first thing I get back is the request I sent. I think I'm going to have the midi sender keep a rotating queue of, say, the last 5 or so messages it sent out. If something comes in which exactly matches it, it could be ignored. - Joe |