BeatDetector (Javadocs: Processing Sound) (original) (raw)


public class BeatDetector extends Analyzer

The BeatDetector analyzer looks for spikes in the energy of an audio signal which are often associated with rhythmic musical beats and can be used to trigger a response whenever the incoming audio signal pulses. Note that this implementation does not return a tempo or BPM (beats per minute) value — it can only tell you whether the current moment of audio contains a beat or not.

Nested Classes

Constructors

boolean[]
double[]
int
boolean
[isBeat](#isBeat%28%29)()
Returns true if the current moment of the audio signal contains a beat, false otherwise.
A "beat" is defined as a spike in the energy of the audio signal - it may or may not coincide exactly with a musical beat.
int
Sets the sensitivity of the beat detector.
void
[sensitivity](#sensitivity%28int%29)(int sensitivity)
Sets the sensitivity, in milliseconds, of the beat detection algorithm.