Hm, well, there is a Midi plugin thread (that could use some activity, *hint*
)
Anyhow, the midiIn functionality worked like a charm during my tests and also in two test applications I wrote (see the demonstration source, by the way). Do you have the latest version? Otherwise it can be downloaded from the main plugin thread.
If you do and it still yields problems, could you describe exactly what you are doing when it happens? Just clearing the buffer should imply no problems.
About changing data;
all midi messages (for the specified channel) is recorded and stacked in the buffer, so if you for instance turn the pitch wheel, you might well end up with a few dozens of messages setting the pitch differently. Or if your synthesizer is having some arpeggio activated, it will repeatedly turn on and off notes while you hold a key, etc.
Is this what you meant?
"We know some things about poodles, for example that they are alive, they can bark, they eat meat..."
- Extract from Objects first with Java.