Name

analyze()

Class

PitchDetector

Description

Returns an estimate of the current pitch (or 'fundamental frequency') of the input sound signal, in Hertz. If the confidence in the current measurement does not exceed the minimum confidence, this method returns 0.

Syntax

  • pitchdetector.analyze()
  • pitchdetector.analyze(minimumConfidence)
  • pitchdetector.analyze(target)

Parameters

  • 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). If omitted, uses the confidence level specified when this PitchDetector was created.

Return

  • float