How to Detect Increments of MIDI Value?

  • Q&A Forum
  • [RESOLVED] How to Detect Increments of MIDI Value?
0
0

Is there a way to use Rules to detect an increase or decrease in MIDI value? I want to use a knob on my midi controller to output right brackets when turning it clockwise and left brackets when turning it counter-clockwise so I can control brush size in Photoshop.

RESOLVED
Marked as spam
Posted by (Q&A Forum: 1, Answers: 1)
March 2, 2019 1:10 am
40 views
0
Private answer

I’ve been trying to figure out how to do that for like a year, thank you so much!

Marked as spam
Posted by (Q&A Forum: 1, Answers: 1)
March 2, 2019 1:56 am

My pleasure!

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

( at March 2, 2019 1:58 am)
2
Private answer

Hi, yes the best way I’ve found is to use a global variable and then a timer to periodically set keystrokes.

The attached file illustrates this for some work I did for a Capture1 user that wanted Left Arrow and right arrow.

The first translator just documents the global variables I’m using so I don’t mess myself up later.

The second translator “Fader 1 Movement” compares the incoming value to the last known value and then uses that value to trigger a timer to send keystrokes by the value changed.

The third (Left) and forth (Right)  translators look at the value, only if the value is in the desired direction will it trigger a keystroke. So either the third or forth translator will fire a key stroke but not both.

The final one “Center Fader 1”. Suppresses the keystroke by pressing and holding the button while repositioning your fader in case you need to re-center your fader.

Of course you will need to adjust the incoming message for the fader you are using (Fader1 Movement) and for the “Center Fader 1” translator . You will also need to change your outgoing keystrokes for “Left” and “Right”.

To change the speed of the keystrokes, you can add a repeat delay to the outgoing action of “Fader 1 Movement” ( 1000=1 second)

 

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

 

Marked as spam
Posted by (Q&A Forum: 36, Answers: 2886)
March 2, 2019 1:36 am

In what way could I change this to output less than 127 characters? It works perfectly, but since it outputs 127 brackets it is very sensitive when changing brush size.

( at March 3, 2019 6:53 am)

In the second translator you can adjust the amount of keystrokes to send by altering the value of qq

// Fix counter to positive
if qq

( at March 4, 2019 8:49 pm)
Votes
Answers
Topic
0
votes
1
answer
asked 1 month ago by
updated 1 month ago by
1
vote
4
answers
asked 3 months ago by
updated 3 months ago by
0
votes
2
answers
asked 4 months ago by
updated 4 months ago by
1 2 3 6