Ableton Live and scrolling

matsimpson

2007-10-31 20:57:36

Just started using MT, its a wonderful piece of software :D
I've started setting up some mouseless control style scripts, using keys on my BCR2000 to click left and right- this is fine. However, I want to make it so that if i turn a knob to the left (anti clockwise), MT will send a keystroke "Left", and if i turn it to the right, MT will send a keystroke to the right. This would make the script much less space consuming - halving the number of keys i would need to scroll up down left and right.. Is there any way of doing this?
i was thinking if you could put "*midi CC name* value goes up then that means scroll to the right, if the value goes down then scroll to the left. But i dont know how to do this if its possible.
Any ideas?

florian

2007-11-02 19:02:14

Hi,

yes, you can do this with MT Pro using variables. In essence:

- use a global variable, e.g. ga to remember the last value of the controller
- each time you turn the knob, compare the new value with ga. If the new value is larger, you turned to the right, so output the "right" key
- if the new value is smaller, output the "left" key.

These are the necessary controllers for that:

Code: Select all

Translator 1: new value greater than ga, output right key
Options: stop=false
Incoming: MIDI B0 4A pp 
Rules: 
  if pp>ga then exit rules, execute Outgoing Action
  exit rules, skip Outgoing Action
Outgoing: Keystroke: Right 

Translator 2: new value smaller than ga, output left key
Options: stop=false
Incoming: MIDI B0 4A pp 
Rules: 
  if pp<ga then exit rules, execute Outgoing Action
  exit rules, skip Outgoing Action
Outgoing: Keystroke: Left 

Translator 3: remember value for next time in ga
Options: stop=false
Incoming: MIDI B0 4A pp 
Rules: 
  ga=pp
Outgoing: (none)
It's very important to uncheck "Stop Processing", because all threee translator entries should see the same MIDI message. Also, replace B0 4A pp with the controller message sent by the BCR2000, replacing the last number with pp.

Let us know how it works!
Florian