TX = 1
class Decoder(srd.Decoder):
- api_version = 2
+ api_version = 3
id = 'midi'
name = 'MIDI'
longname = 'Musical Instrument Digital Interface'
desc = 'Musical Instrument Digital Interface (MIDI) protocol.'
license = 'gplv2+'
inputs = ['uart']
- outputs = ['midi']
+ outputs = []
+ tags = ['Audio', 'PC']
annotations = (
- ('text-verbose', 'Human-readable text (verbose)'),
- ('text-sysreal-verbose', 'Human-readable SysReal text (verbose)'),
- ('text-error', 'Human-readable Error text'),
+ ('text-verbose', 'Text (verbose)'),
+ ('text-sysreal-verbose', 'SysReal text (verbose)'),
+ ('text-error', 'Error text'),
)
annotation_rows = (
('normal', 'Normal', (0, 2)),
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.state = 'IDLE'
self.status_byte = 0
self.explicit_status_byte = False