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, setNumberOfFeatures
getKillListener, isDeleted, isPaused, kill, message, messageReceived, pause, setKillListener, start, toString
public Frequency(float sampleRate)
sampleRate
- The sample rate of the audio contextpublic void process(TimeStamp startTime, TimeStamp endTime, float[] powerSpectrum)
FeatureExtractor
process
in class FeatureExtractor<java.lang.Float,float[]>
powerSpectrum
- the data.public java.lang.String[] getFeatureDescriptions()
FeatureExtractor
getFeatureDescriptions
in class FeatureExtractor<java.lang.Float,float[]>