text: cmd_len = [
      0,  # END
      1,  # TIME
      4,  # MIKU_MOVE
      2,  # MIKU_ROT
      2,  # MIKU_DISP
      2,  # MIKU_SHADOW
      7,  # TARGET
      4,  # SET_MOTION
      2,  # SET_PLAYDATA
      6,  # EFFECT
      2,  # FADEIN_FIELD
      1,  # EFFECT_OFF
      6,  # SET_CAMERA
      2,  # DATA_CAMERA
      1,  # CHANGE_FIELD
      1,  # HIDE_FIELD
      3,  # MOVE_FIELD
      2,  # FADEOUT_FIELD
      3,  # EYE_ANIM
      5,  # MOUTH_ANIM
      5,  # HAND_ANIM
      4,  # LOOK_ANIM
      4,  # EXPRESSION
      5,  # LOOK_CAMERA
      2,  # LYRIC
      0,  # MUSIC_PLAY
      2,  # MODE_SELECT
      4,  # EDIT_MOTION
      2,  # BAR_TIME_SET
      2,  # SHADOWHEIGHT
      1,  # EDIT_FACE
      21,  # MOVE_CAMERA
      0,  # PV_END
      3,  # SHADOWPOS
      2,  # EDIT_LYRIC
      5,  # EDIT_TARGET
      1,  # EDIT_MOUTH
      1,  # SET_CHARA
      7,  # EDIT_MOVE
      1,  # EDIT_SHADOW
      1,  # EDIT_EYELID
      2,  # EDIT_EYE
      1,  # EDIT_ITEM
      2,  # EDIT_EFFECT
      1,  # EDIT_DISP
      2,  # EDIT_HAND_ANIM
      3,  # AIM
      3,  # HAND_ITEM
      1,  # EDIT_BLUSH
      2,  # NEAR_CLIP
      2,  # CLOTH_WET
      3,  # LIGHT_ROT
      6,  # SCENE_FADE
      6,  # TONE_TRANS
      1,  # SATURATE
      1,  # FADE_MODE
      2,  # AUTO_BLINK
      3,  # PARTS_DISP
      1,  # TARGET_FLYING_TIME
      2,  # CHARA_SIZE
      2,  # CHARA_HEIGHT_ADJUST
      4,  # ITEM_ANIM
      4,  # CHARA_POS_ADJUST
      1,  # SCENE_ROT
      2,  # MOT_SMOOTH
      1,  # PV_BRANCH_MODE
      2,  # DATA_CAMERA_START
      1,  # MOVIE_PLAY
      1,  # MOVIE_DISP
      3,  # WIND
      3,  # OSAGE_STEP
      3,  # OSAGE_MV_CCL
      2,  # CHARA_COLOR
      1,  # SE_EFFECT
      9,  # EDIT_MOVE_XYZ
      3,  # EDIT_EYELID_ANIM
      2,  # EDIT_INSTRUMENT_ITEM
      4,  # EDIT_MOTION_LOOP
      2,  # EDIT_EXPRESSION
      3,  # EDIT_EYE_ANIM
      2,  # EDIT_MOUTH_ANIM
      24,  # EDIT_CAMERA
      1,  # EDIT_MODE_SELECT
      2,  # PV_END_FADEOUT
      1,  # TARGET_FLAG
      3,  # ITEM_ANIM_ATTACH
      1,  # SHADOW_RANGE
      3,  # HAND_SCALE
      4,  # LIGHT_POS
      1,  # FACE_TYPE
      2,  # SHADOW_CAST
      6,  # EDIT_MOTION_F
      3,  # FOG
      2,  # BLOOM
      3,  # COLOR_COLLE
      3,  # DOF
      4,  # CHARA_ALPHA
      1,  # AOTO_CAP
      1,  # MAN_CAP
      3,  # TOON
      3,  # SHIMMER
      4,  # ITEM_ALPHA
      2,  # MOVIE_CUT_CHG
      3,  # CHARA_LIGHT
      3,  # STAGE_LIGHT
      8,  # AGEAGE_CTRL
      2,  # PSE
  ]
  
  cmd_str = {
      0x00: 'END',
      0x01: 'TIME',
      0x02: 'MIKU_MOVE',
      0x03: 'MIKU_ROT',
      0x04: 'MIKU_DISP',
      0x05: 'MIKU_SHADOW',
      0x06: 'TARGET',
      0x07: 'SET_MOTION',
      0x08: 'SET_PLAYDATA',
      0x09: 'EFFECT',
      0x0A: 'FADEIN_FIELD',
      0x0B: 'EFFECT_OFF',
      0x0C: 'SET_CAMERA',
      0x0D: 'DATA_CAMERA',
      0x0E: 'CHANGE_FIELD',
      0x0F: 'HIDE_FIELD',
      0x10: 'MOVE_FIELD',
      0x11: 'FADEOUT_FIELD',
      0x12: 'EYE_ANIM',
      0x13: 'MOUTH_ANIM',
      0x14: 'HAND_ANIM',
      0x15: 'LOOK_ANIM',
      0x16: 'EXPRESSION',
      0x17: 'LOOK_CAMERA',
      0x18: 'LYRIC',
      0x19: 'MUSIC_PLAY',
      0x1A: 'MODE_SELECT',
      0x1B: 'EDIT_MOTION',
      0x1C: 'BAR_TIME_SET',
      0x1D: 'SHADOWHEIGHT',
      0x1E: 'EDIT_FACE',
      0x1F: 'MOVE_CAMERA',
      0x20: 'PV_END',
      0x21: 'SHADOWPOS',
      0x22: 'EDIT_LYRIC',
      0x23: 'EDIT_TARGET',
      0x24: 'EDIT_MOUTH',
      0x25: 'SET_CHARA',
      0x26: 'EDIT_MOVE',
      0x27: 'EDIT_SHADOW',
      0x28: 'EDIT_EYELID',
      0x29: 'EDIT_EYE',
      0x2A: 'EDIT_ITEM',
      0x2B: 'EDIT_EFFECT',
      0x2C: 'EDIT_DISP',
      0x2D: 'EDIT_HAND_ANIM',
      0x2E: 'AIM',
      0x2F: 'HAND_ITEM',
      0x30: 'EDIT_BLUSH',
      0x31: 'NEAR_CLIP',
      0x32: 'CLOTH_WET',
      0x33: 'LIGHT_ROT',
      0x34: 'SCENE_FADE',
      0x35: 'TONE_TRANS',
      0x36: 'SATURATE',
      0x37: 'FADE_MODE',
      0x38: 'AUTO_BLINK',
      0x39: 'PARTS_DISP',
      0x3A: 'TARGET_FLYING_TIME',
      0x3B: 'CHARA_SIZE',
      0x3C: 'CHARA_HEIGHT_ADJUST',
      0x3D: 'ITEM_ANIM',
      0x3E: 'CHARA_POS_ADJUST',
      0x3F: 'SCENE_ROT',
      0x40: 'MOT_SMOOTH',
      0x41: 'PV_BRANCH_MODE',
      0x42: 'DATA_CAMERA_START',
      0x43: 'MOVIE_PLAY',
      0x44: 'MOVIE_DISP',
      0x45: 'WIND',
      0x46: 'OSAGE_STEP',
      0x47: 'OSAGE_MV_CCL',
      0x48: 'CHARA_COLOR',
      0x49: 'SE_EFFECT',
      0x4A: 'EDIT_MOVE_XYZ',
      0x4B: 'EDIT_EYELID_ANIM',
      0x4C: 'EDIT_INSTRUMENT_ITEM',
      0x4D: 'EDIT_MOTION_LOOP',
      0x4E: 'EDIT_EXPRESSION',
      0x4F: 'EDIT_EYE_ANIM',
      0x50: 'EDIT_MOUTH_ANIM',
      0x51: 'EDIT_CAMERA',
      0x52: 'EDIT_MODE_SELECT',
      0x53: 'PV_END_FADEOUT',
      0x54: 'TARGET_FLAG',
      0x55: 'ITEM_ANIM_ATTACH',
      0x56: 'SHADOW_RANGE',
      0x57: 'HAND_SCALE',
      0x58: 'LIGHT_POS',
      0x59: 'FACE_TYPE',
      0x5A: 'SHADOW_CAST',
      0x5B: 'EDIT_MOTION_F',
      0x5C: 'FOG',
      0x5D: 'BLOOM',
      0x5E: 'COLOR_COLLE',
      0x5F: 'DOF',
      0x60: 'CHARA_ALPHA',
      0x61: 'AOTO_CAP',
      0x62: 'MAN_CAP',
      0x63: 'TOON',
      0x64: 'SHIMMER',
      0x65: 'ITEM_ALPHA',
      0x66: 'MOVIE_CUT_CHG',
      0x67: 'CHARA_LIGHT',
      0x68: 'STAGE_LIGHT',
      0x69: 'AGEAGE_CTRL',
      0x6A: 'PSE'
  }
  
  str_cmd = {
      'END': 0x00,
      'TIME': 0x01,
      'MIKU_MOVE': 0x02,
      'MIKU_ROT': 0x03,
      'MIKU_DISP': 0x04,
      'MIKU_SHADOW': 0x05,
      'TARGET': 0x06,
      'SET_MOTION': 0x07,
      'SET_PLAYDATA': 0x08,
      'EFFECT': 0x09,
      'FADEIN_FIELD': 0x0A,
      'EFFECT_OFF': 0x0B,
      'SET_CAMERA': 0x0C,
      'DATA_CAMERA': 0x0D,
      'CHANGE_FIELD': 0x0E,
      'HIDE_FIELD': 0x0F,
      'MOVE_FIELD': 0x10,
      'FADEOUT_FIELD': 0x11,
      'EYE_ANIM': 0x12,
      'MOUTH_ANIM': 0x13,
      'HAND_ANIM': 0x14,
      'LOOK_ANIM': 0x15,
      'EXPRESSION': 0x16,
      'LOOK_CAMERA': 0x17,
      'LYRIC': 0x18,
      'MUSIC_PLAY': 0x19,
      'MODE_SELECT': 0x1A,
      'EDIT_MOTION': 0x1B,
      'BAR_TIME_SET': 0x1C,
      'SHADOWHEIGHT': 0x1D,
      'EDIT_FACE': 0x1E,
      'MOVE_CAMERA': 0x1F,
      'PV_END': 0x20,
      'SHADOWPOS': 0x21,
      'EDIT_LYRIC': 0x22,
      'EDIT_TARGET': 0x23,
      'EDIT_MOUTH': 0x24,
      'SET_CHARA': 0x25,
      'EDIT_MOVE': 0x26,
      'EDIT_SHADOW': 0x27,
      'EDIT_EYELID': 0x28,
      'EDIT_EYE': 0x29,
      'EDIT_ITEM': 0x2A,
      'EDIT_EFFECT': 0x2B,
      'EDIT_DISP': 0x2C,
      'EDIT_HAND_ANIM': 0x2D,
      'AIM': 0x2E,
      'HAND_ITEM': 0x2F,
      'EDIT_BLUSH': 0x30,
      'NEAR_CLIP': 0x31,
      'CLOTH_WET': 0x32,
      'LIGHT_ROT': 0x33,
      'SCENE_FADE': 0x34,
      'TONE_TRANS': 0x35,
      'SATURATE': 0x36,
      'FADE_MODE': 0x37,
      'AUTO_BLINK': 0x38,
      'PARTS_DISP': 0x39,
      'TARGET_FLYING_TIME': 0x3A,
      'CHARA_SIZE': 0x3B,
      'CHARA_HEIGHT_ADJUST': 0x3C,
      'ITEM_ANIM': 0x3D,
      'CHARA_POS_ADJUST': 0x3E,
      'SCENE_ROT': 0x3F,
      'MOT_SMOOTH': 0x40,
      'PV_BRANCH_MODE': 0x41,
      'DATA_CAMERA_START': 0x42,
      'MOVIE_PLAY': 0x43,
      'MOVIE_DISP': 0x44,
      'WIND': 0x45,
      'OSAGE_STEP': 0x46,
      'OSAGE_MV_CCL': 0x47,
      'CHARA_COLOR': 0x48,
      'SE_EFFECT': 0x49,
      'EDIT_MOVE_XYZ': 0x4A,
      'EDIT_EYELID_ANIM': 0x4B,
      'EDIT_INSTRUMENT_ITEM': 0x4C,
      'EDIT_MOTION_LOOP': 0x4D,
      'EDIT_EXPRESSION': 0x4E,
      'EDIT_EYE_ANIM': 0x4F,
      'EDIT_MOUTH_ANIM': 0x50,
      'EDIT_CAMERA': 0x51,
      'EDIT_MODE_SELECT': 0x52,
      'PV_END_FADEOUT': 0x53,
      'TARGET_FLAG': 0x54,
      'ITEM_ANIM_ATTACH': 0x55,
      'SHADOW_RANGE': 0x56,
      'HAND_SCALE': 0x57,
      'LIGHT_POS': 0x58,
      'FACE_TYPE': 0x59,
      'SHADOW_CAST': 0x5A,
      'EDIT_MOTION_F': 0x5B,
      'FOG': 0x5C,
      'BLOOM': 0x5D,
      'COLOR_COLLE': 0x5E,
      'DOF': 0x5F,
      'CHARA_ALPHA': 0x60,
      'AOTO_CAP': 0x61,
      'MAN_CAP': 0x62,
      'TOON': 0x63,
      'SHIMMER': 0x64,
      'ITEM_ALPHA': 0x65,
      'MOVIE_CUT_CHG': 0x66,
      'CHARA_LIGHT': 0x67,
      'STAGE_LIGHT': 0x68,
      'AGEAGE_CTRL': 0x69,
      'PSE': 0x6A
  }
  