net.beadsproject.beads.analysis.featureextractors
Class Frequency
java.lang.Object
net.beadsproject.beads.core.Bead
net.beadsproject.beads.analysis.FeatureExtractor<java.lang.Float,float[]>
net.beadsproject.beads.analysis.featureextractors.Frequency
public class Frequency
- extends FeatureExtractor<java.lang.Float,float[]>
Frequency processes spectral data forwarded to it by a PowerSpectrum
to determine the best estimate for the frequency of the current signal.
Constructor Summary |
Frequency(float sampleRate)
Instantiates a new Frequency. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Frequency
public Frequency(float sampleRate)
- Instantiates a new Frequency.
- Parameters:
sampleRate
- The sample rate of the audio context
process
public void process(TimeStamp startTime,
TimeStamp endTime,
float[] powerSpectrum)
- Description copied from class:
FeatureExtractor
- Process some data of type P (specified by the class def). This method must be overidden by implementing classes.
- Specified by:
process
in class FeatureExtractor<java.lang.Float,float[]>
powerSpectrum
- the data.
getFeatureDescriptions
public java.lang.String[] getFeatureDescriptions()
- Description copied from class:
FeatureExtractor
- Gets the feature descriptions. Implementing classes should make sure that this array has meaningful content.
- Overrides:
getFeatureDescriptions
in class FeatureExtractor<java.lang.Float,float[]>
- Returns:
- the feature descriptions.