def _event_as_string(event):
    """Convert a midi event packet to a string representation."""
    return '[id, status, cnum, cval, d1, d2] = %3d, %3d, %3d, %3d, %3d, %3d' % (
        event.midiId, event.status, event.controlNum, event.controlVal, event.data1, event.data2)