uk.org.toot.audio.fader
Class FaderLaw

java.lang.Object
  extended by uk.org.toot.audio.fader.FaderLaw
All Implemented Interfaces:
ControlLaw

public class FaderLaw
extends java.lang.Object
implements ControlLaw

A 'fader control law'


Field Summary
static float ATTENUATION_CUTOFF
           
static FaderLaw BROADCAST
           
static FaderLaw LOG
           
static FaderLaw SEMI_LOG
           
 
Method Summary
 float getMaxdB()
           
 float getMaximum()
           
 float getMinimum()
           
 int getResolution()
          return the resolution of the integer value valid integers are 0 ..
 java.lang.String getUnits()
          return the user units string
 int intValue(float v)
          return the integer value for user value valid integers are 0 ..
 float userValue(int v)
          return the user value for the integer value valid integers are 0 ..
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEMI_LOG

public static final FaderLaw SEMI_LOG
Label:
SEMI_LOG

LOG

public static final FaderLaw LOG
Label:
LOG

BROADCAST

public static final FaderLaw BROADCAST
Label:
BROADCAST

ATTENUATION_CUTOFF

public static float ATTENUATION_CUTOFF
Method Detail

getResolution

public int getResolution()
Description copied from interface: ControlLaw
return the resolution of the integer value valid integers are 0 .. resolution-1

Specified by:
getResolution in interface ControlLaw

getMaximum

public float getMaximum()
Specified by:
getMaximum in interface ControlLaw

getMinimum

public float getMinimum()
Specified by:
getMinimum in interface ControlLaw

getMaxdB

public float getMaxdB()

getUnits

public java.lang.String getUnits()
Description copied from interface: ControlLaw
return the user units string

Specified by:
getUnits in interface ControlLaw

intValue

public int intValue(float v)
Description copied from interface: ControlLaw
return the integer value for user value valid integers are 0 .. resolution-1

Specified by:
intValue in interface ControlLaw

userValue

public float userValue(int v)
Description copied from interface: ControlLaw
return the user value for the integer value valid integers are 0 .. resolution-1

Specified by:
userValue in interface ControlLaw


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.