be.hogent.tarsos.dsp.pitch
Interface PitchProcessor.DetectedPitchHandler

Enclosing class:
PitchProcessor

public static interface PitchProcessor.DetectedPitchHandler

An interface to handle detected pitch.

Author:
Joren Six

Method Summary
 void handlePitch(float pitch, float probability, float timeStamp, float progress)
          Handle a detected pitch.
 

Method Detail

handlePitch

void handlePitch(float pitch,
                 float probability,
                 float timeStamp,
                 float progress)
Handle a detected pitch.

Parameters:
pitch - The pitch in Hz. -1 is returned if no pitch is detected.
probability - The probability (a value between 0 and 1) represents how periodic the signal is.
timeStamp - A time stamp associated with the detection.
progress - If the length of the stream is known beforehand (a file) a progress indication is possible. It is a percentage. If a stream is analyzed a negative value is returned.