Re: [LAU] MidiMemo and MidiGraph

From: Maurizio Berti <maurizio.berti@email-addr-hidden>
Date: Wed Sep 28 2016 - 14:14:25 EEST

Hi Clemens.
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]

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
(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.
If you can help us to shed some light on this, it'll be very appreciated!

Regards,
Maurizio

2016-09-27 19:08 GMT+02:00 Clemens Ladisch <clemens@email-addr-hidden>:

> Maurizio Berti wrote:
> > There are still some bugs (a strange export problem with sysex messages
> I'm
> > trying to solve)
>
> Apparently, the length is not written:
>
> elif isinstance(event, SysexEvent):
> ret += chr(0xF0)
> ret += str.join('', map(chr, event.data))
> ret += chr(0xF7)
>
> (And the length includes the F7 bytes. And I don't know if the data
> includes
> the F0 and F7 in both the Jack and ALSA interfaces.)
>
>
> Regards,
> Clemens
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-user
>

-- 
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Sep 28 16:15:01 2016

This archive was generated by hypermail 2.1.8 : Wed Sep 28 2016 - 16:15:01 EEST