From: Uwe Hermann Date: Sun, 4 Sep 2016 17:14:10 +0000 (+0200) Subject: midi: Some annotation consistency changes. X-Git-Tag: libsigrokdecode-0.5.0~147 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=eb6360c9b161e77c6a04479a08c581306ffb9818 midi: Some annotation consistency changes. --- diff --git a/decoders/midi/lists.py b/decoders/midi/lists.py index a42388a..091b862 100644 --- a/decoders/midi/lists.py +++ b/decoders/midi/lists.py @@ -24,7 +24,7 @@ status_bytes = { 0x80: ['note off', 'note off', 'N off'], 0x90: ['note on', 'note on', 'N on'], # However, velocity = 0 means "note off". 0xa0: ['polyphonic key pressure / aftertouch', 'key pressure', 'KP' ], - 0xb0: ['control change', 'ctl chg', 'CC'], + 0xb0: ['control change', 'ctrl chg', 'CC'], 0xc0: ['program change', 'prgm chg', 'PC'], 0xd0: ['channel pressure / aftertouch', 'channel pressure', 'CP'], 0xe0: ['pitch bend change', 'pitch bend', 'PB'], @@ -37,22 +37,22 @@ status_bytes = { # System common messages 0xf1: ['MIDI time code quarter frame', 'MIDI time code', 'MIDI time'], - 0xf2: ['song position pointer', 'song position', 'position'], - 0xf3: ['song select', 'song select', 'song select'], + 0xf2: ['song position pointer', 'song position', 'song pos'], + 0xf3: ['song select', 'song select', 'song sel'], 0xf4: ['undefined 0xf4', 'undef 0xf4', 'undef'], 0xf5: ['undefined 0xf5', 'undef 0xf5', 'undef'], - 0xf6: ['tune request', 'tune request', 'tune request'], + 0xf6: ['tune request', 'tune request', 'tune req'], 0xf7: ['end of system exclusive (EOX)', 'end of SysEx', 'EOX'], # System real time messages - 0xf8: ['timing clock', 'timing clock', 'timing clock'], + 0xf8: ['timing clock', 'timing clock', 'clock'], 0xf9: ['undefined 0xf9', 'undef 0xf9', 'undef'], - 0xfa: ['start', 'start', 'start'], - 0xfb: ['continue', 'continue', 'continue'], - 0xfc: ['stop', 'stop', 'stop'], + 0xfa: ['start', 'start', 's'], + 0xfb: ['continue', 'continue', 'cont'], + 0xfc: ['stop', 'stop', 'st'], 0xfd: ['undefined 0xfd', 'undef 0xfd', 'undef'], 0xfe: ['active sensing', 'active sensing', 'sensing'], - 0xff: ['system reset', 'reset', 'reset'], + 0xff: ['system reset', 'reset', 'rst'], } # Universal system exclusive (SysEx) messages, non-realtime (0x7e) @@ -415,68 +415,68 @@ control_functions = { 0x02: ['breath controller MSB', 'breath MSB', 'breath-M'], # 0x03: undefined MSB 0x04: ['foot controller MSB', 'foot MSB', 'foot-M'], - 0x05: ['portamento time MSB', 'portamento MSB', 'porta.-M'], + 0x05: ['portamento time MSB', 'portamento MSB', 'porta-M'], 0x06: ['data entry MSB', 'data entry MSB', 'data-M'], 0x07: ['channel volume MSB (formerly main volume)', 'channel volume MSB', 'ch vol-M'], 0x08: ['balance MSB', 'bal MSB', 'bal-M'], # 0x09: undefined MSB 0x0a: ['pan MSB', 'pan MSB', 'pan-M'], 0x0b: ['expression controller MSB', 'expression MSB', 'expr-M'], - 0x0c: ['effect control 1 MSB', 'effect 1 MSB', 'effect-1-M'], - 0x0d: ['effect control 2 MSB', 'effect 2 MSB', 'effect-2-M'], + 0x0c: ['effect control 1 MSB', 'effect 1 MSB', 'eff-1-M'], + 0x0d: ['effect control 2 MSB', 'effect 2 MSB', 'eff-2-M'], # 0x0e-0x0f: undefined MSB - 0x10: ['general purpose controller 1 MSB', 'GP controller 1 MSB', 'GPC-1-M'], - 0x11: ['general purpose controller 2 MSB', 'GP controller 2 MSB', 'GPC-2-M'], - 0x12: ['general purpose controller 3 MSB', 'GP controller 3 MSB', 'GPC-3-M'], - 0x13: ['general purpose controller 4 MSB', 'GP controller 4 MSB', 'GPC-4-M'], + 0x10: ['general purpose controller 1 MSB', 'GP ctrl 1 MSB', 'GPC-1-M'], + 0x11: ['general purpose controller 2 MSB', 'GP ctrl 2 MSB', 'GPC-2-M'], + 0x12: ['general purpose controller 3 MSB', 'GP ctrl 3 MSB', 'GPC-3-M'], + 0x13: ['general purpose controller 4 MSB', 'GP ctrl 4 MSB', 'GPC-4-M'], # 0x14-0x1f: undefined MSB 0x20: ['bank select LSB', 'bank LSB', 'bank-L'], 0x21: ['modulation wheel/lever LSB', 'modulation LSB', 'mod-L'], 0x22: ['breath controller LSB', 'breath LSB', 'breath-L'], # 0x23: undefined LSB 0x24: ['foot controller LSB', 'foot LSB', 'foot-L'], - 0x25: ['portamento time LSB', 'portamento LSB', 'porta.-L'], + 0x25: ['portamento time LSB', 'portamento LSB', 'porta-L'], 0x26: ['data entry LSB', 'data entry LSB', 'data-L'], 0x27: ['channel volume LSB (formerly main volume)', 'channel volume LSB', 'ch vol-L'], 0x28: ['balance LSB', 'bal LSB', 'bal-L'], # 0x29: undefined LSB 0x2a: ['pan LSB', 'pan LSB', 'pan-L'], 0x2b: ['expression controller LSB', 'expression LSB', 'expr-L'], - 0x2c: ['effect control 1 LSB', 'effect 1 LSB', 'effect-1-L'], - 0x2d: ['effect control 2 LSB', 'effect 2 LSB', 'effect-2-L'], + 0x2c: ['effect control 1 LSB', 'effect 1 LSB', 'eff-1-L'], + 0x2d: ['effect control 2 LSB', 'effect 2 LSB', 'eff-2-L'], # 0x2e-0x2f: undefined LSB - 0x30: ['general purpose controller 1 LSB', 'GP controller 1 LSB', 'GPC-1-L'], - 0x31: ['general purpose controller 2 LSB', 'GP controller 2 LSB', 'GPC-2-L'], - 0x32: ['general purpose controller 3 LSB', 'GP controller 3 LSB', 'GPC-3-L'], - 0x33: ['general purpose controller 4 LSB', 'GP controller 4 LSB', 'GPC-4-L'], + 0x30: ['general purpose controller 1 LSB', 'GP ctrl 1 LSB', 'GPC-1-L'], + 0x31: ['general purpose controller 2 LSB', 'GP ctrl 2 LSB', 'GPC-2-L'], + 0x32: ['general purpose controller 3 LSB', 'GP ctrl 3 LSB', 'GPC-3-L'], + 0x33: ['general purpose controller 4 LSB', 'GP ctrl 4 LSB', 'GPC-4-L'], # 0x34-0x3f: undefined LSB - 0x40: ['damper pedal (sustain)', 'sustain', 'sust.'], - 0x41: ['portamento on/off', 'porta. on/off', 'porta. on/off'], + 0x40: ['damper pedal (sustain)', 'sustain', 'sust'], + 0x41: ['portamento on/off', 'porta on/off', 'porta on/off'], 0x42: ['sostenuto', 'sostenuto', 'sostenuto'], 0x43: ['soft pedal', 'soft pedal', 'soft pedal'], - 0x44: ['legato footswitch', 'legato switch', 'legato?'], # vv: 00-3f = normal, 40-7f = legato + 0x44: ['legato footswitch', 'legato switch', 'legato'], # vv: 00-3f = normal, 40-7f = legato 0x45: ['hold 2', 'hold 2', 'hold 2'], - 0x46: ['sound controller 1 (default: sound variation)', 'sound controller 1', 'snd cntlr 1'], - 0x47: ['sound controller 2 (default: timbre / harmonic intensity)', 'sound controller 2', 'snd cntlr 2'], - 0x48: ['sound controller 3 (default: release time)', 'sound controller 3', 'snd cntlr 3'], - 0x49: ['sound controller 4 (default: attack time)', 'sound controller 4', 'snd cntlr 4'], - 0x4a: ['sound controller 5 (default: brightness)', 'sound controller 5', 'snd cntlr 5'], - 0x4b: ['sound controller 6 (GM2 default: decay time)', 'sound controller 6', 'snd cntlr 6'], - 0x4c: ['sound controller 7 (GM2 default: vibrato rate)', 'sound controller 7', 'snd cntlr 7'], - 0x4d: ['sound controller 8 (GM2 default: vibrato depth)', 'sound controller 8', 'snd cntlr 8'], - 0x4e: ['sound controller 9 (GM2 default: vibrato delay)', 'sound controller 9', 'snd cntlr 9'], - 0x4f: ['sound controller 10', 'sound controller 10', 'snd cntlr 10'], + 0x46: ['sound controller 1 (default: sound variation)', 'sound ctrl 1', 'snd ctrl 1'], + 0x47: ['sound controller 2 (default: timbre / harmonic intensity)', 'sound ctrl 2', 'snd ctrl 2'], + 0x48: ['sound controller 3 (default: release time)', 'sound ctrl 3', 'snd ctrl 3'], + 0x49: ['sound controller 4 (default: attack time)', 'sound ctrl 4', 'snd ctrl 4'], + 0x4a: ['sound controller 5 (default: brightness)', 'sound ctrl 5', 'snd ctrl 5'], + 0x4b: ['sound controller 6 (GM2 default: decay time)', 'sound ctrl 6', 'snd ctrl 6'], + 0x4c: ['sound controller 7 (GM2 default: vibrato rate)', 'sound ctrl 7', 'snd ctrl 7'], + 0x4d: ['sound controller 8 (GM2 default: vibrato depth)', 'sound ctrl 8', 'snd ctrl 8'], + 0x4e: ['sound controller 9 (GM2 default: vibrato delay)', 'sound ctrl 9', 'snd ctrl 9'], + 0x4f: ['sound controller 10', 'sound ctrl 10', 'snd ctrl 10'], 0x50: ['general purpose controller 5', 'GP controller 5', 'GPC-5'], 0x51: ['general purpose controller 6', 'GP controller 6', 'GPC-6'], 0x52: ['general purpose controller 7', 'GP controller 7', 'GPC-7'], 0x53: ['general purpose controller 8', 'GP controller 8', 'GPC-8'], - 0x54: ['portamento control', 'portamento ctl', 'porta. ctl'], + 0x54: ['portamento control', 'portamento ctrl', 'porta ctrl'], # 0x55-0x5a: undefined - 0x5b: ['effects 1 depth (formerly external effects depth)', 'effects 1 depth', 'effects 1 depth'], - 0x5c: ['effects 2 depth (formerly tremolo depth)', 'effects 2 depth', 'effects 2 depth'], - 0x5d: ['effects 3 depth (formerly chorus depth)', 'effects 3 depth', 'effects 3 depth'], - 0x5e: ['effects 4 depth (formerly celeste/detune depth)', 'effects 4 depth', 'effects 4 depth'], - 0x5f: ['effects 5 depth (formerly phaser depth)', 'effects 5 depth', 'effects 5 depth'], + 0x5b: ['effects 1 depth (formerly external effects depth)', 'effects 1 depth', 'eff 1 depth'], + 0x5c: ['effects 2 depth (formerly tremolo depth)', 'effects 2 depth', 'eff 2 depth'], + 0x5d: ['effects 3 depth (formerly chorus depth)', 'effects 3 depth', 'eff 3 depth'], + 0x5e: ['effects 4 depth (formerly celeste/detune depth)', 'effects 4 depth', 'eff 4 depth'], + 0x5f: ['effects 5 depth (formerly phaser depth)', 'effects 5 depth', 'eff 5 depth'], 0x60: ['data increment', 'data inc', 'data++'], 0x61: ['data decrement', 'data dec', 'data--'], 0x62: ['Non-Registered Parameter Number LSB', 'NRPN LSB', 'NRPN-L'], @@ -486,8 +486,8 @@ control_functions = { # 0x66-0x77: undefined # 0x78-0x7f: reserved for channel mode messages 0x78: ['all sound off', 'all snd off', 'snd off'], - 0x79: ['reset all controllers', 'reset all cntlrs', 'reset cntlrs'], - 0x7a: ['local control', 'local cntl', 'local ctl'], + 0x79: ['reset all controllers', 'reset all ctrls', 'reset ctrls'], + 0x7a: ['local control', 'local ctrl', 'local ctrl'], 0x7b: ['all notes off', 'notes off', 'notes off'], 0x7c: ['omni mode off', 'omni off', 'omni off'], # all notes off 0x7d: ['omni mode on', 'omni on', 'omni on'], # all notes off