inpro.pitch.util
Class LookAheadPitchTracker
java.lang.Object
edu.cmu.sphinx.util.props.ConfigurableAdapter
edu.cmu.sphinx.frontend.BaseDataProcessor
inpro.pitch.PitchTracker
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.
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter |
logger |
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 |
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
LookAheadPitchTracker
public LookAheadPitchTracker()
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)