PDA

View Full Version : Knob High vals on left, Low on right


RRokkenAudio
02-02-2010, 05:22 PM
I'm trying to get a knob that moves from left to right. The knob all the way to the left would be 0 and all the way to the right would be -25. Can't seem to get it working, tried this but it doesn't work:

GetParam(rband1slope)->InitDouble("", 0.0,0.0, -25.0, 0.01, "");

It just jumps from zero to .01 as the max, which is weird.

~Rob.

Tale
02-03-2010, 04:02 AM
You have specified 0.0 as the minimum and -25.0 as the maximum value, but it should be other way around:

GetParam(rband1slope)->InitDouble("", 0.0,-25.0, 0.0, 0.01, "");