public class Analyzer extends java.lang.Object implements SegmentMaker
| Modifier and Type | Class and Description |
|---|---|
static class |
Analyzer.AnalysisSettings
The Class AnalysisSettings.
|
| Constructor and Description |
|---|
Analyzer(AudioContext ac,
java.util.List<java.lang.Class<? extends FeatureExtractor<?,?>>> extractors)
Instantiates a new analyzer.
|
Analyzer(AudioContext ac,
java.util.List<java.lang.Class<? extends FeatureExtractor<?,?>>> extractors,
Analyzer.AnalysisSettings settings)
Instantiates a new analyzer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBeatListener(SegmentListener sl)
Adds a {#link SegmentListener} which will listen to the beats detected by this Analyzer.
|
void |
addSegmentListener(SegmentListener sl)
Adds the
SegmentListener. |
java.lang.Object |
getElement(java.lang.Class<?> classID)
Gets the extractor or other element of the given class type.
|
FeatureFrame |
getLastBeatFrame()
Gets the last beat frame.
|
FeatureFrame |
getLastLowLevelFrame()
Gets the last low level frame.
|
FeatureSet |
getResults()
Gets the results from the analysis, which is a
FeatureSet containing feature
tracks: "Low Level" for low level features and "Beat" for beat level features. |
void |
listenTo(UGen ugen)
Listen to this input ugen.
|
void |
removeBeatListener(SegmentListener sl)
Removes the {#link SegmentListener} from listening to the beats detected by this Analyzer.
|
void |
removeSegmentListener(SegmentListener sl)
Removes the
SegmentListener. |
void |
setFrameMemory(int fm)
Sets the frame memory for FeatureTracks stored by this Analyzer.
|
void |
updateFrom(UGen ugen)
Update from this source ugen.
|
public Analyzer(AudioContext ac, java.util.List<java.lang.Class<? extends FeatureExtractor<?,?>>> extractors)
ac - the acextractors - the extractorspublic Analyzer(AudioContext ac, java.util.List<java.lang.Class<? extends FeatureExtractor<?,?>>> extractors, Analyzer.AnalysisSettings settings)
ac - the acextractors - the extractorssettings - the settingspublic void addSegmentListener(SegmentListener sl)
SegmentMakerSegmentListener.addSegmentListener in interface SegmentMakersl - the segment listener.public void removeSegmentListener(SegmentListener sl)
SegmentMakerSegmentListener.removeSegmentListener in interface SegmentMakersl - the segment listener.public void addBeatListener(SegmentListener sl)
sl - a SegmentListener.public void removeBeatListener(SegmentListener sl)
sl - a SegmentListener.public void listenTo(UGen ugen)
ugen - the ugenpublic void updateFrom(UGen ugen)
ugen - public FeatureFrame getLastLowLevelFrame()
public FeatureFrame getLastBeatFrame()
public java.lang.Object getElement(java.lang.Class<?> classID)
classID - public FeatureSet getResults()
FeatureSet containing feature
tracks: "Low Level" for low level features and "Beat" for beat level features.public void setFrameMemory(int fm)
fm - number of FeatureFrames stored, -1 for unlimited.