net.beadsproject.beads.analysis.featureextractors
Class MFCC

java.lang.Object
  extended by net.beadsproject.beads.core.Bead
      extended by net.beadsproject.beads.analysis.FeatureExtractor<float[],float[]>
          extended by net.beadsproject.beads.analysis.featureextractors.MFCC

public class MFCC
extends FeatureExtractor<float[],float[]>

MFCC generates mel-frequency spectral coefficients, an important feature type in music and speech processing. MFCC receives feature data from a MelSpectrum, and must be set as a listener to a MelSpectrum, not a pure audio stream, in order to work properly.


Field Summary
 
Fields inherited from class net.beadsproject.beads.analysis.FeatureExtractor
featureDescriptions, features, name, numFeatures
 
Constructor Summary
MFCC(int numCoeffs)
          Instantiates a new MFCC.
 
Method Summary
 void process(TimeStamp startTime, TimeStamp endTime, float[] melSpectrum)
          Process some data of type P (specified by the class def).
 void setNumberOfFeatures(int num)
          Sets the number of features.
 
Methods inherited from class net.beadsproject.beads.analysis.FeatureExtractor
addListener, forward, getFeatureDescriptions, getFeatures, getName, getNumberOfFeatures, removeListener, setName
 
Methods inherited from class net.beadsproject.beads.core.Bead
getKillListener, isDeleted, isPaused, kill, message, messageReceived, pause, setKillListener, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MFCC

public MFCC(int numCoeffs)
Instantiates a new MFCC.

Parameters:
numCoeffs - the number of coefficients to generate.
Method Detail

setNumberOfFeatures

public void setNumberOfFeatures(int num)
Description copied from class: FeatureExtractor
Sets the number of features.

Overrides:
setNumberOfFeatures in class FeatureExtractor<float[],float[]>
Parameters:
num - the new number of features.

process

public void process(TimeStamp startTime,
                    TimeStamp endTime,
                    float[] melSpectrum)
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<float[],float[]>
melSpectrum - the data.