class DiphoneUnit extends Object implements Unit
Modifier and Type | Field and Description |
---|---|
private Diphone |
diphone |
private int |
unitPart |
Constructor and Description |
---|
DiphoneUnit(Diphone diphone,
int unitPart)
Contructs a diphone unit given a diphone and unit part.
|
Modifier and Type | Method and Description |
---|---|
void |
dump()
Dumps this unit.
|
String |
getName()
Returns the name of this Unit.
|
Sample |
getNearestSample(float index)
Retrieves the nearest sample.
|
int |
getSize()
Returns the size of the unit.
|
String |
toString()
Returns a string representation of this object.
|
public DiphoneUnit(Diphone diphone, int unitPart)
diphone
- the diphone to wrapunitPart
- which half (1 or 2) does this unit representpublic int getSize()
public Sample getNearestSample(float index)
getNearestSample
in interface Unit
index
- the ideal indexWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses