|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object comirva.audio.extraction.AttributeExtractor comirva.audio.extraction.AudioFeatureExtractor comirva.audio.extraction.TimbreDistributionExtractor
public class TimbreDistributionExtractor
Timbre Distribution Extractor
Description:
This class supports the extraction of the "Timbre Distribution" summarizing the timbre of an audio stream.
GaussianMixture
,
MFCC
,
TimbreDistribution
Field Summary | |
---|---|
int |
DEFAULT_NUMBER_COMPONENTS
|
protected MFCC |
mfcc
|
int |
minimumStreamLength
|
protected int |
numberGaussianComponents
|
protected AudioPreProcessor |
preProcessor
|
protected float |
sampleRate
|
int |
skipFinalSeconds
|
int |
skipIntroSeconds
|
Constructor Summary | |
---|---|
TimbreDistributionExtractor()
The default constructor uses 3 gaussian components for modeling the timbre distribution. |
|
TimbreDistributionExtractor(float sampleRate,
int numberGaussianComponents,
int skipIntro,
int skipEnd,
int minimumLength)
This constructor in contrast to the default constructor allows to specify the number of gaussian components used for modeling the timbre distribution. |
Method Summary | |
---|---|
Attribute |
calculate(File input)
This method is used to calculate the timbre distribution 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. |
String |
toString()
Returns the feature extractors name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int DEFAULT_NUMBER_COMPONENTS
public int skipIntroSeconds
public int skipFinalSeconds
public int minimumStreamLength
protected AudioPreProcessor preProcessor
protected MFCC mfcc
protected int numberGaussianComponents
protected float sampleRate
Constructor Detail |
---|
public TimbreDistributionExtractor()
MFCC
documentation. The AudioPreProcessors
default sample rate is used.
- See Also:
MFCC
,
AudioPreProcessor
public TimbreDistributionExtractor(float sampleRate, int numberGaussianComponents, int skipIntro, int skipEnd, int minimumLength)
numberGaussianComponents
- int number of gaussian componentsskipIntro
- int number of seconds to skip at the beginning of the songskipEnd
- int number of seconds to skip at the end of the songminimumLength
- int minimum length required for processingMethod Detail |
---|
public AttributeExtractor copy()
AttributeExtractor
copy
in class AttributeExtractor
public Attribute calculate(File input) throws IOException, IllegalArgumentException, UnsupportedAudioFileException
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 object representing the input data to extract the
feature out of
IOException
- failures due to io operations are signaled by
IOExceptions
IllegalArgumentException
- raised if method contract is violated,
especially if the open input type is not
of the expected type
UnsupportedAudioFileException
public int getAttributeType()
getAttributeType
in class AttributeExtractor
Attribute
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |