Class Name

BeatDetector

Description

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 \u2014 it can only tell you whether the current moment of audio contains a beat or not.

Constructors

  • BeatDetector(parent)

Parameters

  • parent(PApplet)Typically "this"

Methods

  • input()Define the audio input for the analyzer.
  • isBeat()Returns whether or not the current moment of audio contains a beat or not.
  • sensitivity()Sets the sensitivity, in milliseconds, of the beat detection algorithm.
  • sensitivity()Sets the sensitivity of the beat detector.