Page 1 of 1

KBMOUSE issues

Posted: 19 Feb 2014 10:36
by buschmann
Hi folks!

Need a little help getting my head around programing the Lemur (iOS). Im working on a Mac, running Logic X.

I got this cute little thing:
Image
I need it to do two things: 1) Send MIDI CC and 2) Send key commands/combinations.
Every button there is a custom button that sends a unique CC, and when i set the ports in the Daemon and in Logic, I get MIDI CC in to Logic. Brilliant.

But my head obviously has a malfunction of sorts, because i cant read from the manual, or the internett, how to work KBMOUSE. I want some buttons to act as key commands as this allows me to program this setup to run Logic almost exclusive from the Lemur (Yes, i know of the Logic Remote, and it is brilliant, but does not send MIDI CC, only key commands. I need both, since i program stuff in the environment that need MIDI CC to react).
I roamed the forum and found some examples i could try: In the editor i added an expression under the Project: [Keybout=1] and [keyboard_target=1] i reasoned this applyed to the KBMOUSE ports. I then added a script to one button, {On expression=x}. Script: [keyout(Keybout,37,x);] And hoory, hooray, its my lucky day, logic reacts! But i face two problems, and here is where you guys come in.

1) I've tried everything and my google-fu is black belt with two stripes.. i cant find a set of keycodes that matches Logics, or at least that lemur and logic agrees on fully. If i set a button to [keyout(Keybout,82,x);] Logic thinks its an [R] and starts recording, but my Key Codes app tells me its Key Code 15. And the command FORWARD in logic, is controlled by [.], which my Key Codes app tells me is 43. If i set this value here [keyout(Keybout,43,x);] hell no, Logic wont accept it. Im Norwegian, and use norwegian keyboard, so i tried changing to an american, but no way. results the same.
Example: Image
As you see, 15 in lemur translates to 0 in OS X, no logic (pun intended) at all..

Help!

2) When i added those expressions to my lemur project, it stopped sending MIDI CC. Now, why the hell is that? I reasoned that it might be that those two lines i added, is blocking the MIDI flow, and voila, when i delete those, MIDI is flowing again, but the keycommands has stopped working. Help!

Thank you for your time!