Page 2 of 2
Re: lemur - sysex receive
Posted: 28 Dec 2011 09:20
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);
Re: lemur - sysex receive
Posted: 28 Dec 2011 18:15
by bammer
That is AWESOME. It converts the values perfectly. Thank you so much.
I'm slowly beginning to get my mind around Lemur.
Re: lemur - sysex receive
Posted: 02 Dec 2012 18:42
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!
Re: lemur - sysex receive
Posted: 03 Dec 2012 03:22
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 . . .
Re: lemur - sysex receive
Posted: 03 Dec 2012 04:14
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!
Re: lemur - sysex receive
Posted: 10 Feb 2013 10:52
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!
Re: lemur - sysex receive
Posted: 10 Feb 2013 11:22
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.
Re: lemur - sysex receive
Posted: 10 Feb 2013 11:46
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?