|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.beadsproject.beads.analysis.Analyzer
public class Analyzer
The Class Analyzer sets up a quick'n'easy audio analysis chain which can then be plugged into a realtime or non-realtime audio stream. Tell the Analyzer what features you want to extract using a list of classes, corresponding to the FeatureExtractors you want. You can then add a SegmentListener to the Analyzer to monitor new features. Analyzer is a work in progress.
Nested Class Summary | |
---|---|
static class |
Analyzer.AnalysisSettings
The Class AnalysisSettings. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 settingsMethod Detail |
---|
public void addSegmentListener(SegmentListener sl)
SegmentMaker
SegmentListener
.
addSegmentListener
in interface SegmentMaker
sl
- the segment listener.public void removeSegmentListener(SegmentListener sl)
SegmentMaker
SegmentListener
.
removeSegmentListener
in interface SegmentMaker
sl
- 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |