Page 2 of 2
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 05 Jan 2013 05:26
by Macciza
Hi
Had a quick look - heres some comments . .
Your buttons scripts are set to 'any' for there execution this means it responds to down and up messages
So your script is being called twice in quick succession, sometimes only a few ms apart
Not sure how your device will respond to this but if it send 2 lots of responses it could cause problems . . .
There also seem to be a number of Monitor.value assigns that supersede each other - was that just for debugging and not all commented out?
Try changing the execution setting and see how it goes . .
MM
PS Initial message did not send due to net dropout but posting anyway even though you seem to have found it . . .
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 05 Jan 2013 08:01
by bint
Thanks for giving my script the once-over.
I made the fix and as a result, the Evolver is now consistently returns the same size Sysex packets - confirmed with MIDI monitor.
Strangely however Lemur is now always truncating the packets to exactly 31 bytes (they should be around 220 bytes). It is also frequently crashing.
You are correct that the superseded assigns were for debugging - I was lazy and didn't comment them out.
As I side-note, I find I'm having to futz around to get the iPad connected over an Ad-hoc network. I can't find a reliable repeatable way to make this happen. Sometimes it will drop out and I will have to spend around an hour trying static IPs, rebooting devices etc.
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 05 Jan 2013 08:26
by bint
ok, here's an interesting data-point.
There are two types of dump i'm requesting:
the first just asks for the main parameters - Evolver correctly returns a 38 byte packet, and after throwing away the first byte (as expected), Lemur gives me 37 bytes - so I am getting everything I'm supposed to.
the second asks for all the patch parameters - Evolver correctly returns a 228 byte packet, and after throwing away the first byte (as expected), Lemur gives me 31 bytes - so it's truncating the rest of the data.
so the issue is only occurring for large arrays. I might try finding a program that lets me create arbitrary sysex packets and throw them at Lemur, and see exactly when it falls over.
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 05 Jan 2013 10:10
by bint
UPDATE:
I used SendSX to try and find a pattern in the packets that are getting truncated. I varied the length of the packet sent to Lemur
but could not get consistent behaviour. Generally, if the packet is less than 32 Bytes, Lemur gets it fine. Once it exceeds this size
it is more often than not truncated. Really scratching my head as yesterday it was working reasonably ok and now it's totally broken
for larger packets.
To reiterate, I am using the Daemon, to get packets from a hardware synth (evolver) into my MIDI interface then streamed wirelessly
to my iPad.
Trying to think what else I can change/try..
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 10 Jan 2013 12:47
by nick_liine
Receiving large SysEx messages over Wi-Fi with Lemur Daemon seems 100% accurate over here.
However, It does indeed look like receiving large SysEx messages through certain hardware is a bit unreliable. Investigating.
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 10 Jan 2013 12:50
by nick_liine
bint wrote:I used SendSX to try and find a pattern in the packets that are getting truncated. I varied the length of the packet sent to Lemur
but could not get consistent behaviour. Generally, if the packet is less than 32 Bytes, Lemur gets it fine. Once it exceeds this size
it is more often than not truncated. Really scratching my head as yesterday it was working reasonably ok and now it's totally broken
for larger packets.
To reiterate, I am using the Daemon, to get packets from a hardware synth (evolver) into my MIDI interface then streamed wirelessly
to my iPad.
Can you confirm that SysEx messages sent TO the Lemur over Wi-Fi with Lemur Daemon are getting truncated?
If not, please let me know exactly in which cases messages were truncated.
I can confirm that long sysex messages sent FROM the computer TO the Lemur with iConnect MIDI are getting truncated.
Thanks,
Nicolas
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 11 Jan 2013 09:11
by bint
EDITED as I remembered a detail about what happened.
nick_liine wrote:
Can you confirm that SysEx messages sent TO the Lemur over Wi-Fi with Lemur Daemon are getting truncated?
If not, please let me know exactly in which cases messages were truncated.
I can confirm that long sysex messages sent FROM the computer TO the Lemur with iConnect MIDI are getting truncated.
Thanks,
Nicolas
Yes I can confirm that long SysEx messages sent TO the Lemur over Wi-Fi with Lemur Daemon are getting truncated.
Initially I was able to receive long SySex messages (>200 Bytes)! But was getting an incorrect number sometimes.
I found this was because I had a bug in my script that was causing the SysEx request to get sent twice for each button push.
When I fixed this bug, I started getting consistently truncated messages, say 32 Bytes, instead of 220 Bytes.
Let me know if you would like me to try anything or if you need any more info about my setup (ipad 3 and mbp)
thanks,
David
PS I can ALSO confirm that long sysex messages sent FROM the computer TO the Lemur with iRig MIDI are getting truncated.
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 12 Jan 2013 03:03
by bint
I've attached a template I made that is the simplest I could think of that would reproduce the problem (for me).
Change the hex in RequestDump() to adapt if for a different hardware synth.
I thought maybe it was a timing issue, eg maybe Lemur was unhappy making the request then immediately receiving the
dump, so I tried just sending SysEx through my MIDI interface without a request. The packets were still truncated.
Also, I tried re-introducing the bug that i fixed just before the truncation problem began. The packets were still truncated
so I can't see a reliable link between these two things.
thanks,
David
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 17 Jan 2013 11:39
by bint
Quick update:
It looks like there is an issue with the Lemur Daemon's handling of large SysEx messages from hardware MIDI ports - but I have a work-around! Not ideal but a good stop-gap while it gets sorted out
Use the SysExLbrarian at the link below to capture the SysEx packet coming off the hardware MIDI input, and then Play it back to one of the Daemon Outputs which is routed into your iPad. A little clunky but it has been solid so far. Holler if this is unclear. If I get time I'll write MaxMSP patch that does this automatically and share it on here:
http://www.snoize.com/SysExLibrarian/
Re: Any MIDI setups known to properly receive SYSEX into Lem
Posted: 14 Mar 2013 15:40
by dsorlien
nick_liine wrote:bint wrote:I used SendSX to try and find a pattern in the packets that are getting truncated. I varied the length of the packet sent to Lemur
but could not get consistent behaviour. Generally, if the packet is less than 32 Bytes, Lemur gets it fine. Once it exceeds this size
it is more often than not truncated. Really scratching my head as yesterday it was working reasonably ok and now it's totally broken
for larger packets.
To reiterate, I am using the Daemon, to get packets from a hardware synth (evolver) into my MIDI interface then streamed wirelessly
to my iPad.
Can you confirm that SysEx messages sent TO the Lemur over Wi-Fi with Lemur Daemon are getting truncated?
If not, please let me know exactly in which cases messages were truncated.
I can confirm that long sysex messages sent FROM the computer TO the Lemur with iConnect MIDI are getting truncated.
Thanks,
Nicolas
Nicolas,
Any update? Does Liine plan to fix this? It is a serious problem for many people that try to use my template which makes heavy use of SYSEX. Some of these users are unable to use the template (because of Lemur's serious SYSEX bug) and I have suggested they request a refund for the Lemur IOS app.
Thanks in advance for your consideration.