Class LowPassFilter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fetchSample​(float[] dst, int off)
      Fetches a sample from the source and low-passes it See http://en.wikipedia.org/wiki/Low-pass_filter
      void setTimeConstant​(float timeConstant)  
      • Methods inherited from class java.lang.Object

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

      • LowPassFilter

        public LowPassFilter​(SampleProvider source,
                             float timeConstant)
        Constructor
        Parameters:
        source - The source for getting samples
        timeConstant - The cut-off frequency for the filter
    • Method Detail

      • fetchSample

        public void fetchSample​(float[] dst,
                                int off)
        Fetches a sample from the source and low-passes it See http://en.wikipedia.org/wiki/Low-pass_filter
        Specified by:
        fetchSample in interface SampleProvider
        Overrides:
        fetchSample in class AbstractFilter
        Parameters:
        dst - The array to store the sample in.
        off - The elements of the sample are stored in the array starting at the offset position.
      • setTimeConstant

        public void setTimeConstant​(float timeConstant)