Traktor 2.5 - Remix Deck mapping for Lemur- 64 slot playback - available now

Just ran a quick text and loaded the first slot player into my iphone ( 3gs) , which worked successfully without any changes to the scripting ( which is as expected). If your having problems check you lemur version is up to date, and that the screen resolution and layouts are set correctly. see the README in the download, or at the start of this post.

NEEDS TESTING UNDER WINDOWS AS I ONLY HAVE MAC. Im assuming x/y co-ordinates are handled the same way, but this could be wrong. Other seem to have got it working but no platform info was provided.

Midi is also used in the setup, so needs to be enable in the lemur daemon also and connected with your iphone, only the 4x4 pads use the mouse clicks ( i should change the 1st row to use midi i suppose, later maybe)

Assuming you can run Lemur, it should work identically to an iphone.. the jzml/jzlib layout will need to change to fit your screen etc

Should have mentioned I’m running lemur 3.1.0, on osx 10.6.8, macbook 13" (@ 1280x800)

joe

Hey Joe,

I now also have midi connected (in and out, channel 0), but same issue: mouse cursor visibly moves to the correct place in the interface, but doesn’t click. I downloaded lemur yesterday, so that shouldn’t be the problem. Any onther ideas?

Lemur v3.0.1, iPhone 4s iOS 5.1, Windows 7, TSP 2.5

whats your system , MAC Windows ?, have you followed the readme instructions for layouts etc?

Hard for me to help, you could try editing the 2 scripts in the tree for the specific pad/mouse click, and merge the two back into one (& ONLY one), they are currnetly separated to split mouse buton click and the mouse button release. , Try identifying a new x/y screen location to test with. After changign the scripts ( shown below) this should perform a full click, rather than click then release when you touch/release the pad button. Notice the scripts are expressions of X( the button state) rising to 1 and then falling to 0 on press release of the screen, creating two events.

(click)
so mouseout(0,26,443);
clickout(0,0,1);

and

(click2)
mouseout(0,26,443);
clickout(0,0,0);

become
(click_new)
mouseout(0,26,443);
clickout(0,0,1);
clickout(0,0,0);

cheers
joe

Hi joe,

Yeah sorry, not giving you enough info…
So I’m using your layouts, as my screen is also 1280x800. I am using Windows 7. I had already gone into the scripts and tried exactly the approach you just mentioned.
It seems the clickout command is just not working on my system: also when have another program running, say google chrome, and I let the click happen at the location of a hyperlink nothing happens.
Also, something seems to not work with the clickout on state 1: as soon as I merge the two click actions the x-coördinate of the mouse action is overwritten (the cursor jumps to x=0). If I remove the clickout (0,0,0) this doesn’t happen… Weird. It seems like the Lemur KBMOUSE actions don’t seem to work correctly in Windows 7. Has anybody else tried to get this working on a windows 7 system?

wow.. may i ask it work on the x1?!

Well, so far I’ve changed the second parameter from the clickout command from 0 (left mouse button) to 1 (right mouse button), and bizarrely, this seems to work. At least, for the mouseclick in. However, I can’t seem to release the mouseclick, so I keep on moving the clips.
So for now, it seems that some Lemur commands are different for MAC osx then for Windows (and also different then stated in the reference guide)

Woohoo!
Solved it.
On my system the second and third clickout parameters are switched: the first one is the target, the second one is the state, the third one is the button, so I’ve programmed all buttons as following:

Click()
mouseout(0,26,443);
clickout(0,1,0);
Click2()
clickout(0,0,0);

The pads are working and so are the page buttons, on iPhone 4S, Lemur 3.1.0 and Windows 7

The concept should work with any device, since it’s emulating mouse movements and clicks. That being said, the layout and script in this thread are lemur specific. You would need a program that emulate a mouse through midi to use it on the X1.

Here is the first version of a mini template for the remix decks, that works with different resolutions. If I coded it well, it should work with any screen resolution.

As I dropped my iPad and as it is still ion repair, the template has an interface for iPhone so I could test the scriptcode.

To adapt the template for different UI configurations and screen resolution, you need to change a little but in function SetConfigData:

// *************************************************************************************
// Initialize the following vars with your Traktor UI configuration and your screen resolution.
// This info is needed to calculate the point that needs to be clicked in the remix deck to
// trigger the corresponding action.
// *************************************************************************************

// set your screen width in pixels here
initScreenWidth = 1920;

// set to 1 if the Global Section is enabled, set to 0 if is is hidden
initGlobalSection = 0;

// set to 1 if the EQ/Volume Fader panel betwen the decks is enabled, otherwise set to 0
initMixerFaderPanel = 0;

// set to 1 if Key etc panel between the decks is enabled, otherweise set to 0
initMixerKeyEtcPanel = 0;

// set to 1 if the Advanced Panel for Decks A&B is visible, otherwise set to 1
initAdvancedPanelAB = 0;

There are plenty comments in the code, so it should be easy to adapt the template.

Currently there are two constraints:

  • Tempo Faders needs to be off
  • Timecode Panel needs to be off

The screen resolution can be changed on the fly on the Screen Res interface; there are four buttons for some standard screen widths.

You can control all four decks as remix decks: switch between decks with the dA…dD buttons.

Pressing one of the pads starts the selected sample.

When holding the “SHIFT” button when pressing a pad, the sample is selected, but not started.
I wanted to see how works; this is needed in a real mapping to be able to change GAIN, PITCH, ect for any cell in the grid.

The Lemur template is here:
www.traktorbible.com/lemur/LemurRemixDeck.zip

Would be great if some other guys could play around a bit. I’m curious to hear if it works everywhere.

There is no MIDI mapping in the template. It uses Lemurs mouse out only

Rainer

Hey Rainer.. great work. Download link is broken though. Will have a test tomorrow.

cheers
joe

Nice one Deksel.. ive updated the initial post and Liine website with your fix info.
cheers
joe

DL Link works for me. I’ll check if this works with Windows PC’s. Slightly different approach then mine, but I definately like the flexibility of your script. I’ll see if I can use some of your codes in my templates, and if they’re any good I’ll post them later on.

I changed the JZML into a ZIP file, the ZIP file should work, Rainer

Yes; think with the new MBP coming with higher resolutions, its much easier to change one line of code than to get all the x/y values again. And in case something changes in the dimensions of the Trkator panels, adapting is done in minutes.

+1 :slight_smile: Great work!

Joe, Rainer, correct me if I’m wrong: the Lemur Daemon and editor allow for MIDI-in routing. So couldn’t we trigger all these pads with MIDI-in commands? Then we could theoretically control the remix Deck pads with every controller out there? I’m a Lemur noob (bought it yesterday), and a MIDI noob also, but I’d like to give it a go. Do you you guys have some pointers/suggestions for how to approach this specific challenge (or if you think its impossible, please let me know).

The problems lies in the fact that even if you can send MIDI back through the Daemon, you still need an interface running lemur to connect to this and handle the information, the editor doesn’t work for this.

Bomes Pro can convert MIDI/Keystrokes into Mouse motion and clicks (have a button on your controller send a mouse position and a few ms later trigger a click) but I’m not sure it supports the kind of scripting Lemur has to adapt to different resolutions and layouts but you might be able to pull it with a set of rules. I’m not very well versed with Bomes so I’m just putting the idea on the table.

if there was a cross platform c/c++ library for mouse emulation then it would be quite easy in midimasher - in fact forevernow+rainer’s script would be quite easy to convert to LUA. i did have a quick dig but could only find separate code for controlling the mouse for mac/windows/linux rather than one nice common library. also i’m not running traktor too much these days - but i’m still curious to try out the remix decks - and manually clicking with a mouse doesn’t appeal to much…

quick answer - could possibly see this working if you have another controller( lets call it APC for now) & a Lemur, with midi routing from the APC being sent to the lemur.

The clickout scripts would need to change from “expression”, to "midi’, with each received midi cc/note mapped to mouse movement you want to make(a true note on / note off message would work well for each of the click states, if you can set it up on the APC, rather than a midi cc being use which is often the case).
Ive not tried routing midi into the lemur yet, but other than some latency dont see why this could not be made to work. You would always need the lemur running( as Padi mentioned), but guess real pads might be easier to play for many.

On a separate idea that might be worth pursuing for some is creating patterns of clickout scripts with some delays to allow pre-programmed “routines” mapped to single lemur button, these could be useful, even with different samples loaded into the remix deck.. 1 press, and bish,bash,bosh.. etc :slight_smile:

cheers
joe

AND the Lemur software I guess…
:slight_smile: