[LAU] MidiMemo and MidiGraph

Clemens Ladisch clemens at ladisch.de
Wed Sep 28 11:59:02 UTC 2016


Maurizio Berti wrote:
> I actually add the length using a lambda function in the ev_dict at line 24:
>     lambda ev: [len(ev.sysex)-1] + ev.sysex[1:-1]

I cannot find this line anywhere in MidiMemo.

> SysEx events are not a problem per se, if you have a track with only SysEx events, it works like a charm; the issue happens when there are different event types in the same track, in a peculiar order.
> More about this:
> https://github.com/vishnubob/python-midi/issues/95

midi.Track(\
  [midi.NoteOnEvent(tick=0, channel=0, data=[22, 64]),
   midi.SysexEvent(tick=0, channel=0, data=[8, 11, 12, 13, 14, 15, 16, 17]),
   midi.NoteOnEvent(tick=0, channel=0, data=[22, 64]),
   midi.EndOfTrackEvent(tick=0, data=[])])

000000: 4D 54 68 64 00 00 00 06 00 01 00 01 00 DC 4D 54  MThd..........MT
000010: 72 6B 00 00 00 16 00 90 16 40 00 F0 08 0B 0C 0D  rk....... at ......
000020: 0E 0F 10 11 F7 00 16 40 00 FF 2F 00              ....... at ../.
                         ^
Running status cannot be used here; the last status byte was F7.


Regards,
Clemens


More information about the Linux-audio-user mailing list