Forums > MaxMSP

How to reverse the direction of a slider?

April 12, 2010 | 8:05 pm

Basically I want my knob to increase counterclockwise. It’s a "tempo" knob that just connects to the [metro], so instead of getting SLOWER as you turn the knob ‘up,’ i want that to make it faster. I’d prefer not to mess with the global transport business because the patch is so simple in this. There has to be a way to reverse the slider, right?

Please help thanks!

Jeremy



Ch
April 12, 2010 | 8:25 pm

Hi,
if your slider is 0 to 127, you can have a 127 to 0 by using a simple [!- 127.]


April 13, 2010 | 12:11 am

or [scale 0 127 127 0], fill in any values you want.

Sometimes I also have a transparent knob/slider on top of the real one, to display the "real" values going out. With ignoreclick on, you’ll click through to the one below. This is helpful also with sequencers, for example, using a [multislider] to show where you are, but is non-interactive.


Viewing 3 posts - 1 through 3 (of 3 total)