|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcomirva.audio.extraction.AttributeExtractor
comirva.audio.extraction.AudioFeatureExtractor
comirva.audio.extraction.FluctuationPatternCentExtractor
public class FluctuationPatternCentExtractor
Title: Fluctuation Patterns
Description:
This class supports the extraction of the so-called "Fluctuation Patterns" from an audio stream. This is a advanced version based on the cent scale instead of the bark scale.
AudioFeatureExtractor
,
FluctuationPattern
Constructor Summary | |
---|---|
FluctuationPatternCentExtractor()
The default constructor uses segments of size 65536 samples. |
|
FluctuationPatternCentExtractor(int fftSize,
int segmentSize)
Constructs an individualized FluctuationPatternExtractor. |
Method Summary | |
---|---|
Attribute |
calculate(java.lang.Object input)
This method is used to calculate the fluctuation pattern for a whole song. |
AttributeExtractor |
copy()
This method returns a copy of an AttributeExtractor. |
int |
getAttributeType()
Returns the type of the attribute that the class implementing this interface will return as the result of its extraction process. |
double[] |
getFluxWeights()
Returns weights for the amplitude modulation coefficients based on the psychoarcoustic model of the fluctuation strength. |
static double |
getMedian(double[] array)
Computes the median of all the elements in the array. |
java.lang.String |
toString()
Returns the feature extractors name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FluctuationPatternCentExtractor()
public FluctuationPatternCentExtractor(int fftSize, int segmentSize)
fftSize
- int number of cent values to considersegmentSize
- int number of samples a segments consists ofMethod Detail |
---|
public AttributeExtractor copy()
AttributeExtractor
copy
in class AttributeExtractor
public Attribute calculate(java.lang.Object input) throws java.lang.IllegalArgumentException, java.io.IOException
AudioPreProcessor
object. All settings are set by the constructor, so this method can easily
be called for a large number of songs to extract this feature.
calculate
in class AttributeExtractor
input
- Object an AudioPreProcessor
representing the audio
input stream;
FluctuationPattern
feature is returned as a
result of this feature extraction process
java.io.IOException
- if there are any problems regarding the inputstream
java.lang.IllegalArgumentException
- raised if method contract of a subroutine
is violatedpublic double[] getFluxWeights()
public static double getMedian(double[] array) throws java.lang.IllegalArgumentException
array
- double[] array of values; must not be a null value and must
contain at least one element;
java.lang.IllegalArgumentException
- raised if method contract is violatedpublic int getAttributeType()
getAttributeType
in class AttributeExtractor
Attribute
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |