marytts.unitselection.data
Class LPCTimelineReader

java.lang.Object
  extended by marytts.unitselection.data.TimelineReader
      extended by marytts.unitselection.data.LPCTimelineReader

public class LPCTimelineReader
extends TimelineReader


Nested Class Summary
 
Nested classes/interfaces inherited from class marytts.unitselection.data.TimelineReader
TimelineReader.IdxField, TimelineReader.Index, TimelineReader.ProcHeader
 
Field Summary
protected  float lpcMin
           
protected  int lpcOrder
           
protected  float lpcRange
           
 
Fields inherited from class marytts.unitselection.data.TimelineReader
datagramsBytePos, idx, maryHdr, numDatagrams, procHdr, sampleRate, timeIdxBytePos, totalDuration
 
Constructor Summary
LPCTimelineReader(java.lang.String fileName)
           
 
Method Summary
 float getLPCMin()
           
 int getLPCOrder()
           
 float getLPCRange()
           
protected  Datagram getNextDatagram(java.nio.ByteBuffer bb)
          Read and return the upcoming datagram.
protected  void load(java.lang.String fileName)
          Load a timeline from a file.
 
Methods inherited from class marytts.unitselection.data.TimelineReader
computeTotalDuration, getByteBufferAtTime, getDatagram, getDatagram, getDatagrams, getDatagrams, getDatagrams, getDatagrams, getDatagrams, getDatagrams, getDatagramsBytePos, getIndex, getMappedByteBufferAtTime, getNumDatagrams, getProcHeaderContents, getSampleRate, getTotalDuration, hopToTime, load, loadByteBufferAtTime, scaleTime, skipNextDatagram, unScaleTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lpcOrder

protected int lpcOrder

lpcMin

protected float lpcMin

lpcRange

protected float lpcRange
Constructor Detail

LPCTimelineReader

public LPCTimelineReader(java.lang.String fileName)
                  throws java.io.IOException,
                         MaryConfigurationException
Throws:
java.io.IOException
MaryConfigurationException
Method Detail

load

protected void load(java.lang.String fileName)
             throws java.io.IOException,
                    MaryConfigurationException
Description copied from class: TimelineReader
Load a timeline from a file.

Overrides:
load in class TimelineReader
Parameters:
fileName - The file to read the timeline from. Must be non-null and point to a valid timeline file.
Throws:
java.io.IOException - if a problem occurs during reading
MaryConfigurationException - if fileName does not point to a valid timeline file

getLPCOrder

public int getLPCOrder()

getLPCMin

public float getLPCMin()

getLPCRange

public float getLPCRange()

getNextDatagram

protected Datagram getNextDatagram(java.nio.ByteBuffer bb)
Read and return the upcoming datagram.

Overrides:
getNextDatagram in class TimelineReader
Parameters:
bb - the timeline byte buffer to read from
Returns:
the current datagram, or null if EOF was encountered; internally updates the time pointer.
Throws:
java.io.IOException