Class AbstractSampled
java.lang.Object
ca.phon.audio.AbstractSampled
- All Implemented Interfaces:
Sampled
- Direct Known Subclasses:
ArraySampled,AudioFileSampled,ChannelFilteredSampled,EmptySampled,MonoSampled
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]getWindowExtrema(float firstTime, float endTime) double[]getWindowExtrema(int channel, float startTime, float endTime) Get min/max values for specified time rangevoidgetWindowExtrema(int channel, float startTime, float endTime, double[] extrema) Get min/max values for specified time rangedouble[][]getWindowExtrema(int firstSample, int lastSample) double[]getWindowExtrema(int channel, int firstSample, int lastSample) Get the miminum and maximum values for the specified sample rangevoidgetWindowExtrema(int channel, int firstSample, int lastSample, double[] extrema) Get min/max values for specified windowdoublemaximumValue(int channel, float startTime, float endTime) Get the maximum value for the specified time rangedoublemaximumValue(int channel, int firstSample, int lastSample) Get the maximum value for the specified sample rangedoubleminimumValue(int channel, int firstSample, int lastSample) Get the minimum value for the specified sample rangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.phon.audio.Sampled
close, getEndTime, getLength, getNumberOfChannels, getNumberOfSamples, getSampleRate, getStartTime, loadSampleData, sampleForTime, valueForSample, valueForTime
-
Constructor Details
-
AbstractSampled
public AbstractSampled()
-
-
Method Details
-
maximumValue
public double maximumValue(int channel, int firstSample, int lastSample) Description copied from interface:SampledGet the maximum value for the specified sample range- Specified by:
maximumValuein interfaceSampled- Parameters:
channel-firstSample-lastSample-- Returns:
- maximum value for specified range
-
maximumValue
public double maximumValue(int channel, float startTime, float endTime) Description copied from interface:SampledGet the maximum value for the specified time range- Specified by:
maximumValuein interfaceSampled- Parameters:
channel-startTime-endTime-- Returns:
- maximum value for specified range
-
minimumValue
public double minimumValue(int channel, int firstSample, int lastSample) Description copied from interface:SampledGet the minimum value for the specified sample range- Specified by:
minimumValuein interfaceSampled- Parameters:
channel-firstSample-lastSample-- Returns:
- minimum value for specified range
-
getWindowExtrema
public double[][] getWindowExtrema(int firstSample, int lastSample) - Specified by:
getWindowExtremain interfaceSampled
-
getWindowExtrema
public double[] getWindowExtrema(int channel, int firstSample, int lastSample) Description copied from interface:SampledGet the miminum and maximum values for the specified sample range- Specified by:
getWindowExtremain interfaceSampled- Parameters:
channel-firstSample-lastSample-- Returns:
- min/max values for range
-
getWindowExtrema
public void getWindowExtrema(int channel, int firstSample, int lastSample, double[] extrema) Description copied from interface:SampledGet min/max values for specified window- Specified by:
getWindowExtremain interfaceSampled- Parameters:
channel-firstSample-extrema-
-
getWindowExtrema
public double[][] getWindowExtrema(float firstTime, float endTime) - Specified by:
getWindowExtremain interfaceSampled
-
getWindowExtrema
public double[] getWindowExtrema(int channel, float startTime, float endTime) Description copied from interface:SampledGet min/max values for specified time range- Specified by:
getWindowExtremain interfaceSampled- Parameters:
channel-startTime-endTime-- Returns:
- min/max values for specified range
-
getWindowExtrema
public void getWindowExtrema(int channel, float startTime, float endTime, double[] extrema) Description copied from interface:SampledGet min/max values for specified time range- Specified by:
getWindowExtremain interfaceSampled- Parameters:
channel-startTime-endTime-extrema- an array of double[2] where the data will be stored
-