Why midi reset is trapped?

Hi Jules,

There is an assert that is fired when there is a midi reset (0xFF) on the midi input:

int MidiMessage::getMessageLengthFromFirstByte (const uint8 firstByte) throw()
{
    // this method only works for valid starting bytes of a short midi message
    jassert (firstByte >= 0x80
              && firstByte != 0xff
              && firstByte != 0xf0
              && firstByte != 0xf7);

and I was wondering why ?

I have just encountered a keyboard that sends one from time to time, so it’s not comletely obsolete.

I didn’t realise that 0xff was a valid midi command - I guess it is, so that assertion can be removed!