<div dir="ltr"><div><span style="font-size:12.8px">> I cannot find this line anywhere in MidiMemo.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Sorry, it's line 32.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">> Running status cannot be used here; the last status byte was F7.</span></div><div><span style="font-size:12.8px"><br></span></div>Just to be clear, I did not write that module.<div>So, the problem is that it doesn't reset the status byte after a sysex event, right?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-28 13:59 GMT+02:00 Clemens Ladisch <span dir="ltr"><<a href="mailto:clemens@ladisch.de" target="_blank">clemens@ladisch.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Maurizio Berti wrote:<br>
> I actually add the length using a lambda function in the ev_dict at line 24:<br>
>     lambda ev: [len(ev.sysex)-1] + ev.sysex[1:-1]<br>
<br>
</span>I cannot find this line anywhere in MidiMemo.<br>
<span class=""><br>
> 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.<br>
> More about this:<br>
> <a href="https://github.com/vishnubob/python-midi/issues/95" rel="noreferrer" target="_blank">https://github.com/vishnubob/<wbr>python-midi/issues/95</a><br>
<br>
</span>midi.Track(\<br>
  [midi.NoteOnEvent(tick=0, channel=0, data=[22, 64]),<br>
   midi.SysexEvent(tick=0, channel=0, data=[8, 11, 12, 13, 14, 15, 16, 17]),<br>
   midi.NoteOnEvent(tick=0, channel=0, data=[22, 64]),<br>
   midi.EndOfTrackEvent(tick=0, data=[])])<br>
<br>
000000: 4D 54 68 64 00 00 00 06 00 01 00 01 00 DC 4D 54  MThd..........MT<br>
000010: 72 6B 00 00 00 16 00 90 16 40 00 F0 08 0B 0C 0D  rk.......@......<br>
000020: 0E 0F 10 11 F7 00 16 40 00 FF 2F 00              .......@../.<br>
                         ^<br>
Running status cannot be used here; the last status byte was F7.<br>
<br>
<br>
Regards,<br>
Clemens<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div>
</div>