Class ModelStandardTransform

java.lang.Object
com.sun.media.sound.ModelStandardTransform
All Implemented Interfaces:
ModelTransform

public final class ModelStandardTransform extends Object implements 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 Details

  • 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 interface ModelTransform
    • 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)