de.sciss.jcollider.gui
Class Warp

java.lang.Object
  extended by de.sciss.jcollider.gui.Warp

public abstract class Warp
extends java.lang.Object

Helper classes for warping a control value. This is a quite direct translation from the SClang classes.

Version:
0.28, 29-Jul-06
Author:
Hanns Holger Rutz
See Also:
ControlSpec

Field Summary
static Warp cos
           
static Warp exp
           
static Warp lin
           
static Warp sin
           
 
Constructor Summary
Warp()
           
 
Method Summary
static Warp curve(double curve)
           
abstract  double map(double value, ControlSpec spec)
           
abstract  double unmap(double value, ControlSpec spec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lin

public static Warp lin

exp

public static Warp exp

sin

public static Warp sin

cos

public static Warp cos
Constructor Detail

Warp

public Warp()
Method Detail

curve

public static Warp curve(double curve)

map

public abstract double map(double value,
                           ControlSpec spec)

unmap

public abstract double unmap(double value,
                             ControlSpec spec)