uk.org.toot.control
Class LogLaw

java.lang.Object
  extended by uk.org.toot.control.AbstractLaw
      extended by uk.org.toot.control.LogLaw
All Implemented Interfaces:
ControlLaw

public class LogLaw
extends AbstractLaw

A logarithmic control law. Note that audio faders are not generally logarithmic!

See Also:
FaderLaw

Constructor Summary
LogLaw(float min, float max, java.lang.String units)
           
 
Method Summary
 int intValue(float userVal)
          return the integer value for user value valid integers are 0 ..
static void main(java.lang.String[] args)
           
 float userValue(int intVal)
          return the user value for the integer value valid integers are 0 ..
 
Methods inherited from class uk.org.toot.control.AbstractLaw
getMaximum, getMinimum, getResolution, getUnits
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogLaw

public LogLaw(float min,
              float max,
              java.lang.String units)
Method Detail

intValue

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


userValue

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


main

public static void main(java.lang.String[] args)


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