public class FFTPitch extends java.lang.Object implements PitchDetector
Constructor and Description |
---|
FFTPitch(int sampleRate,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
PitchDetectionResult |
getPitch(float[] audioBuffer)
Analyzes a buffer with audio information and estimates a pitch in Hz.
|
public PitchDetectionResult getPitch(float[] audioBuffer)
PitchDetector
getPitch
in interface PitchDetector
audioBuffer
- The buffer with audio information. The information in the
buffer is not modified so it can be (re)used for e.g. FFT
analysis.