com.meapsoft.featextractors
Class AvgChromaScalar

java.lang.Object
  extended bycom.meapsoft.featextractors.FeatureExtractor
      extended bycom.meapsoft.featextractors.AvgChroma
          extended bycom.meapsoft.featextractors.AvgChromaScalar

public class AvgChromaScalar
extends AvgChroma

Returns a scalar corresponding to the mean chroma of a chunk. Legal values are between 0 and 11, each corresponding to a different semitone. Based on AvgMelSpec by Mike Mandel


Field Summary
 
Fields inherited from class com.meapsoft.featextractors.AvgChroma
chromaWts, linSpec, N, outDim
 
Constructor Summary
AvgChromaScalar()
           
AvgChromaScalar(int N, int outDim, double sampleRate)
           
 
Method Summary
 java.lang.String description()
          Returns a short string describing what this feature extractor does.
 double[] features(STFT stft, long startFrame, int length)
          Extract features from a chunk of STFT data.
 
Methods inherited from class com.meapsoft.featextractors.AvgChroma
hz2octs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvgChromaScalar

public AvgChromaScalar()

AvgChromaScalar

public AvgChromaScalar(int N,
                       int outDim,
                       double sampleRate)
Method Detail

features

public double[] features(STFT stft,
                         long startFrame,
                         int length)
Description copied from class: FeatureExtractor
Extract features from a chunk of STFT data.

Overrides:
features in class AvgChroma

description

public java.lang.String description()
Description copied from class: FeatureExtractor
Returns a short string describing what this feature extractor does.

Overrides:
description in class AvgChroma