inpro.pitch.util
Class LookAheadPitchTracker

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
          extended by inpro.pitch.PitchTracker
              extended by inpro.pitch.util.LookAheadPitchTracker
All Implemented Interfaces:
edu.cmu.sphinx.frontend.DataProcessor, edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable

public class LookAheadPitchTracker
extends PitchTracker
implements edu.cmu.sphinx.instrumentation.Resetable

A pitch tracker that uses lookahead and dynamic programming to determine pitch tracks.


Field Summary
(package private)  int currListPos
           
(package private)  int framesInQueue
           
(package private)  java.util.Queue<edu.cmu.sphinx.frontend.Data> localQueue
           
(package private)  int lookAhead
           
(package private)  java.util.List<java.lang.Double> pitchList
           
(package private)  PitchOptimizer pitchOptimizer
           
static java.lang.String PROP_LOOK_AHEAD
           
(package private)  java.util.List<java.lang.Boolean> voicingList
           
 
Fields inherited from class inpro.pitch.PitchTracker
debug, PROP_CAND_SCORE_THRESHOLD, PROP_LISTENERS, PROP_MAX_PITCH_HZ, PROP_MIN_PITCH_HZ
 
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
logger
 
Constructor Summary
LookAheadPitchTracker()
           
 
Method Summary
private  void fillQueue()
           
 edu.cmu.sphinx.frontend.Data getData()
           
 void initialize()
           
static void main(java.lang.String[] args)
           
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
           
 void reset()
           
 
Methods inherited from class inpro.pitch.PitchTracker
amdf, cmn, functionalTest, smdsf, speedTest
 
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor
getPredecessor, getTimer, setPredecessor
 
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
getName, initLogger, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_LOOK_AHEAD

@S4Integer(defaultValue=0)
public static final java.lang.String PROP_LOOK_AHEAD
See Also:
Constant Field Values

lookAhead

int lookAhead

voicingList

java.util.List<java.lang.Boolean> voicingList

pitchList

java.util.List<java.lang.Double> pitchList

pitchOptimizer

PitchOptimizer pitchOptimizer

localQueue

java.util.Queue<edu.cmu.sphinx.frontend.Data> localQueue

framesInQueue

int framesInQueue

currListPos

int currListPos
Constructor Detail

LookAheadPitchTracker

public LookAheadPitchTracker()
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface edu.cmu.sphinx.frontend.DataProcessor
Overrides:
initialize in class edu.cmu.sphinx.frontend.BaseDataProcessor

newProperties

public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
                   throws edu.cmu.sphinx.util.props.PropertyException
Specified by:
newProperties in interface edu.cmu.sphinx.util.props.Configurable
Overrides:
newProperties in class PitchTracker
Throws:
edu.cmu.sphinx.util.props.PropertyException

reset

public void reset()
Specified by:
reset in interface edu.cmu.sphinx.instrumentation.Resetable

fillQueue

private void fillQueue()

getData

public edu.cmu.sphinx.frontend.Data getData()
                                     throws edu.cmu.sphinx.frontend.DataProcessingException
Specified by:
getData in interface edu.cmu.sphinx.frontend.DataProcessor
Overrides:
getData in class PitchTracker
Throws:
edu.cmu.sphinx.frontend.DataProcessingException

main

public static void main(java.lang.String[] args)