Class Oscillator


  • public class Oscillator
    extends java.lang.Object
    This generates variable frequency oscillation curves
    • Constructor Summary

      Constructors 
      Constructor Description
      Oscillator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPoint​(double position, float period)  
      double getSlope​(double time, double phase, double dphase)  
      double getValue​(double time, double phase)  
      void normalize()
      After adding point every thing must be normalized
      void setType​(int type, java.lang.String customType)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Oscillator

        public Oscillator()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setType

        public void setType​(int type,
                            java.lang.String customType)
      • addPoint

        public void addPoint​(double position,
                             float period)
      • normalize

        public void normalize()
        After adding point every thing must be normalized
      • getValue

        public double getValue​(double time,
                               double phase)
      • getSlope

        public double getSlope​(double time,
                               double phase,
                               double dphase)