<div dir="ltr"><span style="font-size:12.8px">Hi Clemens.</span><div style="font-size:12.8px">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></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">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" target="_blank">https://github.com/vishnubob/<wbr>python-midi/issues/95</a><br></div><div style="font-size:12.8px">(I actually closed that issue because wasn't directly related and was waiting for a confirmation from a guy on #ardour who was going to look into it.</div><div style="font-size:12.8px">If you can help us to shed some light on this, it'll be very appreciated!</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Regards,</div><div style="font-size:12.8px">Maurizio</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-27 19:08 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>
> There are still some bugs (a strange export problem with sysex messages I'm<br>
> trying to solve)<br>
<br>
</span>Apparently, the length is not written:<br>
<br>
        elif isinstance(event, SysexEvent):<br>
            ret += chr(0xF0)<br>
            ret += str.join('', map(chr, event.data))<br>
            ret += chr(0xF7)<br>
<br>
(And the length includes the F7 bytes.  And I don't know if the data includes<br>
the F0 and F7 in both the Jack and ALSA interfaces.)<br>
<br>
<br>
Regards,<br>
Clemens<br>
______________________________<wbr>_________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.<wbr>linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-user" rel="noreferrer" target="_blank">http://lists.linuxaudio.org/<wbr>listinfo/linux-audio-user</a><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>