public class Frequency extends FeatureExtractor<java.lang.Float,float[]>
PowerSpectrum
to determine the best estimate for the frequency of the current signal.featureDescriptions, features, name, numFeatures| Constructor and Description |
|---|
Frequency(float sampleRate)
Instantiates a new Frequency.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getFeatureDescriptions()
Gets the feature descriptions.
|
void |
process(TimeStamp startTime,
TimeStamp endTime,
float[] powerSpectrum)
Process some data of type P (specified by the class def).
|
addListener, forward, getFeatures, getName, getNumberOfFeatures, removeListener, setName, setNumberOfFeaturesgetKillListener, isDeleted, isPaused, kill, message, messageReceived, pause, setKillListener, start, toStringpublic Frequency(float sampleRate)
sampleRate - The sample rate of the audio contextpublic void process(TimeStamp startTime, TimeStamp endTime, float[] powerSpectrum)
FeatureExtractorprocess in class FeatureExtractor<java.lang.Float,float[]>powerSpectrum - the data.public java.lang.String[] getFeatureDescriptions()
FeatureExtractorgetFeatureDescriptions in class FeatureExtractor<java.lang.Float,float[]>