fader problem...I think

hgpa

2016-01-17 16:09:14

Hello!

Excuse my englisch, I come from Germany.....

I'm quite new in mt, therefore here my problem:
Facts, witch are so far ok : a fader brings values from 0 to 127, I changed it to relative:
when the values become larger, keystroke "right" - thats ok
when the values become smaller, keystroke "left" - thats ok too,
but now my problem: I want, that the keystrokes continue, when the values are 0 (to "left") or 127 (to "right"), not stop!
They should stop, when I move the fader a bit again to value 1 or so or to 126 or so....
May be its possible with a "timer" rule - but here are my problems with mt-programming....

If there would be any help, many thanks!

hg

DvlsAdvct

2016-01-17 23:59:34

Hi hgpa

I'm going to pass this on to the guy in charge, because he speaks fluent German and I, alas, do not.

What I could recommend, is creating an "off" button. What would happen is when you are holding the button down the fader doesn't send anything, and when you let it go you can keep moving it "left" or "right" for more keystrokes.

Thanks
Jared

florian

2016-01-27 14:48:44

Hi, sorry for the late reply! We've been at the NAMM music show...

So for your problem: it's actually quite easy with a timer:

Code: Select all

[x] Translator 0.0: Start Low Timer
Incoming: Control Change on channel 1 with CC#:1 (0x01) and value:0 (0x00)
Rules:
  // remember that we're running a "low" timer
  h0=1
Outgoing: Periodic timer "Low Repeat": 100 ms (initial delay: 100 ms)

[x] Translator 0.1: Execute low timer
Incoming: On timer "Low Repeat"
Outgoing: Physical Keys: Left

[x] Translator 0.2: Stop Low Timer
Incoming: Control Change on channel 1 with CC#:1 (0x01) set 'pp' to value
Rules:
  // do not do anything if we're not running the "low" timer
  if h0!=1 then exit rules, skip Outgoing Action
  // ignore if still at low point
  if pp==0 then exit rules, skip Outgoing Action
  // reset h0: we're not running the timer anymore
  h0=0
Outgoing: Kill timer "Low Repeat"

[x] Translator 0.3: Start High Timer
Incoming: Control Change on channel 1 with CC#:1 (0x01) and value:127 (0x7F)
Rules:
  // remember that we're running a "high" timer
  h1=1
Outgoing: Periodic timer "High Repeat": 100 ms (initial delay: 100 ms)

[x] Translator 0.4: Execute high timer
Incoming: On timer "High Repeat"
Outgoing: Physical Keys: Right

[x] Translator 0.5: Stop High Timer
Incoming: Control Change on channel 1 with CC#:1 (0x01) set 'pp' to value
Rules:
  // do not do anything if we're not running the "high" timer
  if h1!=1 then exit rules, skip Outgoing Action
  // ignore if still at low point
  if pp==127 then exit rules, skip Outgoing Action
  // reset h1: we're not running the timer anymore
  h1=0
Outgoing: Kill timer "High Repeat"
See also the attached project file. Note that it does not have the logic for left/right when moving the fader.

Best regards,
Florian
Attachments
ContinueKeys_atMaxMin.bmtp
(2.41 KiB) Downloaded 116 times

hgpa

2016-01-27 18:18:16

Hello Florian!

Thank you for your tips and the file.

I think, I come clear with this!

Thanks a lot!

HG