|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.tools.math.LevelUtil
A utility class for scaling and adjusting level values.
Field Summary | |
static int |
MAX_ADJUST
maximum incremental adjust value for modules. |
static int |
MAX_LVL
maximum level range value for modules. |
static int |
MIN_ADJUST
maximum decremental adjust value for modules. |
static int |
MIN_LVL
minimum level range value for modules. |
Constructor Summary | |
LevelUtil()
|
Method Summary | |
static int |
adjustLevel(int nLevel,
int nOffset,
int deviceMin,
int deviceMax)
Step the level value by a calculated scale value or by one in either direction. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MIN_LVL
public static final int MAX_LVL
public static final int MIN_ADJUST
public static final int MAX_ADJUST
Constructor Detail |
public LevelUtil()
Method Detail |
public static int adjustLevel(int nLevel, int nOffset, int deviceMin, int deviceMax)
nLevel
- nOffset
- deviceMin
- deviceMax
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |