public abstract class SequentialDataCommon extends java.lang.Object implements SequentialData
| Constructor and Description |
|---|
SequentialDataCommon() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getChannelsPerFrame() |
int |
getNumFrames() |
abstract double |
getRateScaler(int index,
double synthesisRate)
Get rate to play the data.
|
int |
getReleaseBegin() |
int |
getReleaseEnd() |
int |
getSustainBegin() |
int |
getSustainEnd()
SustainEnd value is the frame index of the frame just past the end of the loop.
|
abstract double |
readDouble(int index)
Read a value from the sample independently from the internal storage
format.
|
void |
setReleaseBegin(int releaseBegin) |
void |
setReleaseEnd(int releaseEnd)
ReleaseEnd value is the frame index of the frame just past the end of the
loop.
|
void |
setSustainBegin(int sustainBegin) |
void |
setSustainEnd(int sustainEnd)
SustainEnd value is the frame index of the frame just past the end of the
loop.
|
abstract void |
writeDouble(int index,
double value)
Write a value at the given index.
|
public abstract void writeDouble(int index,
double value)
SequentialDatawriteDouble in interface SequentialDataindex - sample index is ((frameIndex * channelsPerFrame) +
channelIndex)value - the value to be writtenpublic abstract double readDouble(int index)
SequentialDatareadDouble in interface SequentialDataindex - sample index is ((frameIndex * channelsPerFrame) +
channelIndex)public abstract double getRateScaler(int index,
double synthesisRate)
SequentialDatagetRateScaler in interface SequentialDatapublic abstract int getChannelsPerFrame()
getChannelsPerFrame in interface SequentialDatapublic int getSustainBegin()
getSustainBegin in interface SequentialDatapublic int getSustainEnd()
SequentialDatagetSustainEnd in interface SequentialDatapublic int getReleaseBegin()
getReleaseBegin in interface SequentialDatapublic int getReleaseEnd()
getReleaseEnd in interface SequentialDatapublic void setSustainBegin(int sustainBegin)
public void setSustainEnd(int sustainEnd)
sustainEnd - public void setReleaseBegin(int releaseBegin)
public void setReleaseEnd(int releaseEnd)
releaseEnd - public int getNumFrames()
getNumFrames in interface SequentialData