//Debug.println("duration: " + duration + ", 0x" + StringUtil.toHex4(duration));
// -------- event --------
int e1 = read(is);
switch (e1) {
case 0x00: // short event
smafMessage = new NopMessage(duration);
break;
case 0x01: // short event
smafMessage = new ResetOrigneMessage(duration);
break;
case 0x20: { // control event