smafMessage = new PitchBendMessage(duration, channel, (msb << 7) | lsb);
} else if (status == 0xff) { // eos, nop
int d1 = read(is);
switch (d1) {
case 0x00:
smafMessage = new NopMessage(duration);
break;
case 0x2f:
int d2 = read(is); // must be 0
if (d2 != 0) {
Debug.println("illegal state: " + StringUtil.toHex2(d2));