Package samer.units

Class Wavetable

  • java.lang.Object
    • samer.units.Wavetable
  • All Implemented Interfaces:
    Generator


    public class Wavetable
    extends java.lang.Object
    implements Generator
    Periodic generator: generates periodic signal from a wave table
    • Constructor Summary

      Constructors 
      Constructor and Description
      Wavetable(Vec vec) 
      Wavetable(Vec vec, int start, int end) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void dispose() 
      double next() 
      void next(double[] x) 
      int period() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

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

      • Wavetable

        public Wavetable(Vec vec)
      • Wavetable

        public Wavetable(Vec vec,
                         int start,
                         int end)
    • Method Detail

      • period

        public int period()
      • dispose

        public void dispose()
        Specified by:
        dispose in interface Generator
      • next

        public double next()
        Specified by:
        next in interface Generator
      • next

        public void next(double[] x)
        Specified by:
        next in interface Generator
      • toString

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