Package Acquisition
Class DCFilter
java.lang.Object
Acquisition.DCFilter
Class to remove DC offset from audio data.
- Author:
- Douglas Gillespie
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
filterData
(int channel, double[] data) Filter data in place.double
getAlpha()
double[]
int
getChannelCallCount
(int channel) int
double
double
void
setTimeContant
(double sampleRate, double timeConstant) Set the time constant
-
Constructor Details
-
Method Details
-
setTimeContant
public void setTimeContant(double sampleRate, double timeConstant) Set the time constant- Parameters:
timeConstant
-timeConstant2
-timeConstant
-
-
filterData
public void filterData(int channel, double[] data) Filter data in place.- Parameters:
channel
-data
-
-
getChannelCallCount
public int getChannelCallCount(int channel) -
getSampleRate
public double getSampleRate() -
getTimeConstant
public double getTimeConstant() -
getnChannels
public int getnChannels() -
getBackground
public double[] getBackground() -
getAlpha
public double getAlpha()
-