Package ca.phon.audio

Class AbstractSampled

java.lang.Object
ca.phon.audio.AbstractSampled
All Implemented Interfaces:
Sampled
Direct Known Subclasses:
ArraySampled, AudioFileSampled, ChannelFilteredSampled, EmptySampled, MonoSampled

public abstract class AbstractSampled extends Object implements Sampled
  • Constructor Details

    • AbstractSampled

      public AbstractSampled()
  • Method Details

    • maximumValue

      public double maximumValue(int channel, int firstSample, int lastSample)
      Description copied from interface: Sampled
      Get the maximum value for the specified sample range
      Specified by:
      maximumValue in interface Sampled
      Returns:
      maximum value for specified range
    • maximumValue

      public double maximumValue(int channel, float startTime, float endTime)
      Description copied from interface: Sampled
      Get the maximum value for the specified time range
      Specified by:
      maximumValue in interface Sampled
      Returns:
      maximum value for specified range
    • minimumValue

      public double minimumValue(int channel, int firstSample, int lastSample)
      Description copied from interface: Sampled
      Get the minimum value for the specified sample range
      Specified by:
      minimumValue in interface Sampled
      Returns:
      minimum value for specified range
    • getWindowExtrema

      public double[][] getWindowExtrema(int firstSample, int lastSample)
      Specified by:
      getWindowExtrema in interface Sampled
    • getWindowExtrema

      public double[] getWindowExtrema(int channel, int firstSample, int lastSample)
      Description copied from interface: Sampled
      Get the miminum and maximum values for the specified sample range
      Specified by:
      getWindowExtrema in interface Sampled
      Returns:
      min/max values for range
    • getWindowExtrema

      public void getWindowExtrema(int channel, int firstSample, int lastSample, double[] extrema)
      Description copied from interface: Sampled
      Get min/max values for specified window
      Specified by:
      getWindowExtrema in interface Sampled
    • getWindowExtrema

      public double[][] getWindowExtrema(float firstTime, float endTime)
      Specified by:
      getWindowExtrema in interface Sampled
    • getWindowExtrema

      public double[] getWindowExtrema(int channel, float startTime, float endTime)
      Description copied from interface: Sampled
      Get min/max values for specified time range
      Specified by:
      getWindowExtrema in interface Sampled
      Returns:
      min/max values for specified range
    • getWindowExtrema

      public void getWindowExtrema(int channel, float startTime, float endTime, double[] extrema)
      Description copied from interface: Sampled
      Get min/max values for specified time range
      Specified by:
      getWindowExtrema in interface Sampled
      Parameters:
      extrema - an array of double[2] where the data will be stored