Class Name

PitchDetector

Description

Detects the pitch (also known as the 'fundamental frequency') of a sound signal. For complex signals this is not a trivial task, so the analyzer only returns a frequency measurement (measured in Hertz) when its measurement exceeds a 'confidence level' that can be specified by the user.

Constructors

  • PitchDetector(parent, minimumConfidence)
  • PitchDetector(parent)

Parameters

  • parent(PApplet)typically "this"
  • minimumConfidence(float)the minimum confidence level required for frequency measurements, between 0 (accept all measurements, no matter how unreliable) to 1 (only accept perfect measurements). Defaults to 0.8.

Methods

  • analyze()Detect the fundamental frequency of the input sound signal.
  • input()Define the audio input for the analyzer.