Package com.sun.media.sound
Class ModelStandardTransform
java.lang.Object
com.sun.media.sound.ModelStandardTransform
- All Implemented Interfaces:
ModelTransform
A standard transformer used in connection blocks.
It expects input values to be between 0 and 1.
The result of the transform is
between 0 and 1 if polarity = unipolar and
between -1 and 1 if polarity = bipolar.
These constraints only applies to Concave, Convex and Switch transforms.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final boolean
static final boolean
static final boolean
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionModelStandardTransform
(boolean direction) ModelStandardTransform
(boolean direction, boolean polarity) ModelStandardTransform
(boolean direction, boolean polarity, int transform) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
int
void
setDirection
(boolean direction) void
setPolarity
(boolean polarity) void
setTransform
(int transform) double
transform
(double value)
-
Field Details
-
DIRECTION_MIN2MAX
public static final boolean DIRECTION_MIN2MAX- See Also:
-
DIRECTION_MAX2MIN
public static final boolean DIRECTION_MAX2MIN- See Also:
-
POLARITY_UNIPOLAR
public static final boolean POLARITY_UNIPOLAR- See Also:
-
POLARITY_BIPOLAR
public static final boolean POLARITY_BIPOLAR- See Also:
-
TRANSFORM_LINEAR
public static final int TRANSFORM_LINEAR- See Also:
-
TRANSFORM_CONCAVE
public static final int TRANSFORM_CONCAVE- See Also:
-
TRANSFORM_CONVEX
public static final int TRANSFORM_CONVEX- See Also:
-
TRANSFORM_SWITCH
public static final int TRANSFORM_SWITCH- See Also:
-
TRANSFORM_ABSOLUTE
public static final int TRANSFORM_ABSOLUTE- See Also:
-
-
Constructor Details
-
ModelStandardTransform
public ModelStandardTransform() -
ModelStandardTransform
public ModelStandardTransform(boolean direction) -
ModelStandardTransform
public ModelStandardTransform(boolean direction, boolean polarity) -
ModelStandardTransform
public ModelStandardTransform(boolean direction, boolean polarity, int transform)
-
-
Method Details
-
transform
public double transform(double value) - Specified by:
transform
in interfaceModelTransform
-
getDirection
public boolean getDirection() -
setDirection
public void setDirection(boolean direction) -
getPolarity
public boolean getPolarity() -
setPolarity
public void setPolarity(boolean polarity) -
getTransform
public int getTransform() -
setTransform
public void setTransform(int transform)
-