public static class BaseUnitConcatenator.UnitData extends Object
Modifier and Type | Field and Description |
---|---|
protected Datagram[] |
frames |
protected int[] |
pitchmarks |
protected Datagram |
rightContextFrame |
protected int |
unitDuration |
Constructor and Description |
---|
BaseUnitConcatenator.UnitData() |
Modifier and Type | Method and Description |
---|---|
Datagram |
getFrame(int frameIndex) |
Datagram[] |
getFrames() |
int |
getNumberOfPitchmarks() |
int |
getPeriodLength(int periodIndex)
Get the length of the pitch period ending with pitchmark with the index number periodIndex.
|
int |
getPitchmark(int periodIndex)
Get the pitchmark marking the end of the period with the index number periodIndex.
|
int[] |
getPitchmarks() |
Datagram |
getRightContextFrame() |
int |
getUnitDuration()
Get the realised duration of this unit, in samples
|
void |
setFrame(int frameIndex,
Datagram frame) |
void |
setFrames(Datagram[] frames) |
void |
setPitchmarks(int[] pitchmarks)
Set the array of to-be-realised pitchmarks for the realisation of the selected unit.
|
void |
setRightContextFrame(Datagram aRightContextFrame) |
void |
setUnitDuration(int duration)
Set the realised duration of this unit, in samples.
|
protected int[] pitchmarks
protected Datagram[] frames
protected Datagram rightContextFrame
protected int unitDuration
public void setPitchmarks(int[] pitchmarks)
pitchmarks
- pitchmarkspublic int[] getPitchmarks()
public int getPitchmark(int periodIndex)
periodIndex
- periodIndexpublic int getPeriodLength(int periodIndex)
periodIndex
- periodIndexpublic int getNumberOfPitchmarks()
public void setFrames(Datagram[] frames)
public Datagram[] getFrames()
public void setFrame(int frameIndex, Datagram frame)
public Datagram getFrame(int frameIndex)
public void setRightContextFrame(Datagram aRightContextFrame)
public Datagram getRightContextFrame()
public void setUnitDuration(int duration)
duration
- durationpublic int getUnitDuration()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.