View Single Post
Old 02-24-2020, 01:19 PM   #6968
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 11,184
Default

Quote:
Originally Posted by LDEVO View Post
Little bit random but has anyone attempted to do different actions depending on whether an encoder is outputting positive or negative values?

For example what I would like to do is use the encoder to control selecting tracks, so if you scroll left (The encoder outputs -0.0159 with every click) for each click I want to scroll one track previous and vice versa for scrolling right (when the encoder outputs 0.0159 with each click).
Usually it's best to leave the .mst files alone and modify the .zon files, but this is a case, where, if you are willing to change the .mst file -- and that means you can't use the normal rotary behaviour on this Page (other Pages can use a different .mst so you are fine there ) -- you can get what you want.

Here is an easy way to do it, just define the Rotary as 2 Buttons -- say your Rotary puts out 3f and 41:

Code:
Widget RotaryInc1
    Press 90 03 3f
WidgetEnd

Widget RotaryDec1
    Press 90 03 41
WidgetEnd
__________________
To install you need the CSI Software and Support Files
For installation instructions and documentation see the Wiki
Donate -- via PayPal to waddingtongeoff@gmail.com
Geoff Waddington is offline   Reply With Quote