|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.hogent.tarsos.dsp.pitch.PitchProcessor
public class PitchProcessor
Is responsible to call a pitch estimation algorithm. It also calculates progress.
The underlying pitch detection algorithm must implement the PitchDetector interface.
| Nested Class Summary | |
|---|---|
static class |
PitchProcessor.PitchEstimationAlgorithm
A list of pitch estimation algorithms. |
| Constructor Summary | |
|---|---|
PitchProcessor(PitchProcessor.PitchEstimationAlgorithm algorithm,
float sampleRate,
int bufferSize,
PitchDetectionHandler handler)
Initialize a new pitch processor. |
|
| Method Summary | |
|---|---|
boolean |
process(AudioEvent audioEvent)
Process the audio event. |
void |
processingFinished()
Notify the AudioProcessor that no more data is available and processing has finished. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PitchProcessor(PitchProcessor.PitchEstimationAlgorithm algorithm,
float sampleRate,
int bufferSize,
PitchDetectionHandler handler)
algorithm - An enum defining the algorithm.sampleRate - The sample rate of the buffer (Hz).bufferSize - The size of the buffer in samples.handler - The handler handles detected pitch.| Method Detail |
|---|
public boolean process(AudioEvent audioEvent)
AudioProcessor
process in interface AudioProcessoraudioEvent - The audio event that contains audio data.
public void processingFinished()
AudioProcessor
processingFinished in interface AudioProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||