X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmidi%2Fpd.py;h=2bd1d89995df6a8384e9d38e28f120d77ae1a556;hb=4467372a2e39bb72648eebbb96934147681110c2;hp=f718632130c042bc16908634e4bc3d6b1cb27742;hpb=17f5df4f9eb701d6e8203d2953a7c48d3dd55537;p=libsigrokdecode.git diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py index f718632..2bd1d89 100644 --- a/decoders/midi/pd.py +++ b/decoders/midi/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# MIDI protocol decoder - import sigrokdecode as srd from .lists import * @@ -39,8 +37,7 @@ class Decoder(srd.Decoder): optional_probes = [] options = {} annotations = [ - ['Text (verbose)', 'Human-readable text (verbose)'], - # ['Text', 'Human-readable text'], + ['text-verbose', 'Human-readable text (verbose)'], ] def __init__(self, **kwargs): @@ -51,12 +48,9 @@ class Decoder(srd.Decoder): self.ss_block = None self.es_block = None - def start(self, metadata): - # self.out_proto = self.add(srd.OUTPUT_PROTO, 'midi') - self.out_ann = self.add(srd.OUTPUT_ANN, 'midi') - - def report(self): - pass + def start(self): + # self.out_proto = self.register(srd.OUTPUT_PYTHON) + self.out_ann = self.register(srd.OUTPUT_ANN) def putx(self, data): self.put(self.ss_block, self.es_block, self.out_ann, data)