MIDI decoder sketch

I have been confused by the explanations of this phenomena as well, your example is bit more concrete which I appreciate, however I think if you have a look at this site OpenStax and scroll down to "Running Status" it will help. Not having programmed anything to deal with it, I would not claim to understand it, but at least they seem to have a handle on the philosophy behind it.

cheers, Rob