|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.hogent.tarsos.sampled.pitch.TarsosPitchDetection
public final class TarsosPitchDetection
Constructor Summary | |
---|---|
TarsosPitchDetection(AudioFile audioFile,
PitchDetectionMode pitchDetectionMode)
|
Method Summary | |
---|---|
java.util.List<Annotation> |
executePitchDetection()
Execute the pitch detection process. |
java.util.List<Annotation> |
getAnnotations()
|
java.lang.String |
getName()
|
static void |
processFile(java.lang.String fileName,
PitchDetectionMode detectionMode,
AnnotationHandler detectedPitchHandler)
Annotate a file with pitch information. |
static void |
processStream(javax.sound.sampled.AudioInputStream ais,
AnnotationHandler detectedPitchHandler,
PitchDetectionMode detectionMode)
Annotate an audio stream: useful for real-time pitch tracking. |
double |
progress()
Calculate and return an indicator for progress. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TarsosPitchDetection(AudioFile audioFile, PitchDetectionMode pitchDetectionMode)
Method Detail |
---|
public java.util.List<Annotation> executePitchDetection()
PitchDetector
executePitchDetection
in interface PitchDetector
public java.lang.String getName()
getName
in interface PitchDetector
public java.util.List<Annotation> getAnnotations()
getAnnotations
in interface PitchDetector
public static void processFile(java.lang.String fileName, PitchDetectionMode detectionMode, AnnotationHandler detectedPitchHandler) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
fileName
- the file to annotate.detectedPitchHandler
- handles the pitch information.detectionMode
- Defines the detection mode used.
javax.sound.sampled.UnsupportedAudioFileException
- Currently only WAVE files with one channel (MONO) are
supported.
java.io.IOException
- If there is an error reading the file.public static void processStream(javax.sound.sampled.AudioInputStream ais, AnnotationHandler detectedPitchHandler, PitchDetectionMode detectionMode) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
ais
- The audio input stream.detectedPitchHandler
- Handles the pitch information.detectionMode
- Defines the detection mode used.
javax.sound.sampled.UnsupportedAudioFileException
- Currently only WAVE streams with one channel (MONO) are
supported.
java.io.IOException
- If there is an error reading the stream.public double progress()
PitchDetector
progress
in interface PitchDetector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |