All Packages Class Hierarchy This Package Previous Next Index
Class improv.util.CosineCurve
java.lang.Object
|
+----improv.util.Curve
|
+----improv.util.ParameterizedCurve
|
+----improv.util.CosineCurve
- public final class CosineCurve
- extends ParameterizedCurve
The CosineCurve object is one of six curve types used by the various filter types, to compute time varying values.
-
CosineCurve()
- The Default Constructor
-
CosineCurve(Curve, Curve, Curve)
- Creates a CosineCurve whose min,max and frequency are themselves time-varying parameters.
-
CosineCurve(Curve, Curve, Curve, Curve, Curve, double, double, double, double, double)
- Creates a CosineCurve whose min, max, frequency, bias and gain are themselves time-varying parameters.
-
CosineCurve(Curve[])
- Creates a CosineCurve from an array of curves.
-
CosineCurve(double, double, double)
- Constructs a CosineCurve given a min, max and frequency
-
CosineCurve(double, double, double, double, double)
- Constructs a CosineCurve given a min, max, frequency, bias and gain
-
eval(double)
- The eval method is called from the execute method of the parent ParameterizedCurve class.
CosineCurve
public CosineCurve()
- The Default Constructor
CosineCurve
public CosineCurve(double min,
double max,
double frq)
- Constructs a CosineCurve given a min, max and frequency
CosineCurve
public CosineCurve(double min,
double max,
double frequency,
double bias,
double gain)
- Constructs a CosineCurve given a min, max, frequency, bias and gain
CosineCurve
public CosineCurve(Curve c1,
Curve c2,
Curve c3)
- Creates a CosineCurve whose min,max and frequency are themselves time-varying parameters.
CosineCurve
public CosineCurve(Curve a1,
Curve a2,
Curve f,
Curve b,
Curve g,
double a1Val,
double a2Val,
double fVal,
double bVal,
double gVal)
- Creates a CosineCurve whose min, max, frequency, bias and gain are themselves time-varying parameters.
CosineCurve
public CosineCurve(Curve curves[])
- Creates a CosineCurve from an array of curves. If the array length is 3 the curves are used for min, max and frequency.
If the array length is 5 the curves are used for min, max, frequency, bias and gain.
eval
public double eval(double time)
- The eval method is called from the execute method of the parent ParameterizedCurve class.
- Overrides:
- eval in class Curve
All Packages Class Hierarchy This Package Previous Next Index