lemur - sysex receive

Discuss Lemur and share techniques.
mbncp
Regular
Posts: 87
Joined: 08 Dec 2011 07:25

Re: lemur - sysex receive

Post by mbncp »

bammer wrote: Is there any function in Lemur that converts this array of received sysex data from decimal to hex in real time?
Not directly but you can make your own:

Click on project(in the tree view), add a script, call it arraytohex(array) leave it to manual and paste the following code:

Code: Select all

decl a, b, c , i;
c = sizeof(array)*3-1;
a = fill(1,32,c);
for(i = 0; i < c; i++)
{
	b = array[i] >> 4;
	a[i*3] = b > 9 ? b+55 : b+48;
	b = array[i] & 0xF;
	a[i*3+1] = b > 9 ? b+55 : b+48;
}
return arraytostring(a);
then just call it this way:

Monitor.value = arraytohex(MIDI_ARGS);
bammer
Newbie
Posts: 11
Joined: 27 Dec 2011 20:57

Re: lemur - sysex receive

Post by bammer »

That is AWESOME. It converts the values perfectly. Thank you so much.
I'm slowly beginning to get my mind around Lemur.
shanekoss
Newbie
Posts: 23
Joined: 27 Jun 2012 13:27

Re: lemur - sysex receive

Post by shanekoss »

Hi all - this only seems to work if the sysex device ID (2nd byte) is not 0. How do you monitor and process sysex data if the device id is 0?

for example the string is

240 0 0 102 5 0 16 3 1 3 14 12 247

Normally 240 is ignored, but if the second digit is 0 - nothing seems to be received.

If i manually send a message substituting the 0 with anything else - it is received. However the device is sending 0...

thanks!
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: lemur - sysex receive

Post by Macciza »

Hi Shane
Yes this does seem to be a problem, possibly a test against zero message is catching the zero char .

Cheers
MM ..
I have passed it on and hopefully a fix will be in the next update . . .
Will see if I can think of a solution - easily done with a Max patch not sure about Lemur native . . .
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
shanekoss
Newbie
Posts: 23
Joined: 27 Jun 2012 13:27

Re: lemur - sysex receive

Post by shanekoss »

Hi - Thanks for looking into it! Yup - I am using max now as a workaround - hopefully in the future it will won't be needed!
macay
Newbie
Posts: 12
Joined: 03 Feb 2013 15:47

Re: lemur - sysex receive

Post by macay »

Any news when the problem with device id = 0 will be fixed?
One of the main reasons I recently purchased Lemur is its ability to handle sysex data... but apparently it doesn't work for what I want to do :|
So hopefully there'll be a fix soon! :)
nick_liine
Liine Staff
Posts: 285
Joined: 01 Oct 2010 11:06

Re: lemur - sysex receive

Post by nick_liine »

240 0 0 102 is a message for Mackie Control. It was being intercepted, this is now fixed and will be included in the next release.
macay
Newbie
Posts: 12
Joined: 03 Feb 2013 15:47

Re: lemur - sysex receive

Post by macay »

nick_liine wrote:240 0 0 102 is a message for Mackie Control. It was being intercepted, this is now fixed and will be included in the next release.
GREAT! Thanks for the quick reply :)
Can you already tell when the next release will be out?
Post Reply