Using a potentiometer instead two buttons..

hgpa

2016-07-04 13:24:10

Hello!

I'm reading in this very good forum a lot of time and I got a lot of hints and help. Thank you very much!
Now I want to give a litte back, a little idea to use a potentiometer as two buttons:

I work in some progams with midi-controllers to chance values etc (Final Cut Pro X, Motion etc)

One of my controllers of my last project had two buttons to less, but some spare potentiometers.
My idea - it works very well: I use one potentiometer as two buttons: jumping to an in-point
or an out-point in Final Cut Pro X.
The potentiometer has a perceptible resistance in the middle (excuse my poor english...)
You can feel very exactly the middle of the way:
My idea here as little listing:

Code: Select all

[ ] Translator 1: Modul: Potentiometer using instaed of two buttons

[ ] Translator 2: First value of two
Incoming: MIDI b0 3e vv
Rules:
        // Poti gives values from 0- 127, the middle is at  ca. 64
        // A value of 63 is now a very little left of the middle of the pot,
        // if you chance the pot-knob a little to the left, you change the value..   
  if vv>63 then exit rules, skip Outgoing Action
Outgoing: Physical Keys: Shift(I)

[ ] Translator 3: Second value of two
Incoming: MIDI b0 3e vv
Rules:
  if vv<63 then exit rules, skip Outgoing Action
Outgoing: Physical Keys: Shift(O)
It does very well, a little move to the left - Final Cut jumps to the in-point,
a little move to the middle back - you feel the difference in your fingers - Final Cut jumps to the out-point...
With a value of 66 instead of 63 you use the right site of the poti, if you wish...

I did'nt see an advice like this in the forum, therefore here my posting.
Much fun!

PS: It would be nice, to have a top in this forum only for collecting little hints....

HG

DvlsAdvct

2016-07-18 01:41:52

Hi hgpa

This thread is exactly what you're looking for.

Thanks for the tip
Jared