inpro.synthesis
Class PitchMark
java.lang.Object
inpro.synthesis.PitchMark
- Direct Known Subclasses:
- SegmentModel.SegmentBoundPitchMark
public class PitchMark
- extends java.lang.Object
a PitchMark
Constructor Summary |
protected |
PitchMark(double position,
double pitch)
|
|
PitchMark(java.lang.String pitchMarkString)
create a pitchMark from an mbrola pitchmark-string |
Method Summary |
int |
getPitch()
|
double |
getPosition()
|
int |
getTime(int startTime,
int duration)
returns the time of this pitch mark given the label's boundaries |
void |
setPitch(float pitch)
|
void |
setRelativePosition(double timepos)
really be careful not to mess up the linear ordering of pitchmarks in a list of pms! |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
position
protected double position
pitch
protected double pitch
PitchMark
protected PitchMark(double position,
double pitch)
PitchMark
public PitchMark(java.lang.String pitchMarkString)
- create a pitchMark from an mbrola pitchmark-string
setPitch
public void setPitch(float pitch)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getTime
public int getTime(int startTime,
int duration)
- returns the time of this pitch mark given the label's boundaries
setRelativePosition
public void setRelativePosition(double timepos)
- really be careful not to mess up the linear ordering of pitchmarks in a list of pms!
getPosition
public double getPosition()
getPitch
public int getPitch()