public abstract class AudioSample extends SequentialDataCommon
| Constructor and Description |
|---|
AudioSample() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMarker(SampleMarker marker)
Add a marker that will be stored sorted by position.
|
abstract void |
allocate(int numFrames,
int channelsPerFrame) |
int |
getChannelsPerFrame() |
double |
getFrameRate() |
SampleMarker |
getMarker(int index) |
int |
getMarkerCount() |
int |
getNumFrames() |
double |
getPitch() |
double |
getRateScaler(int index,
double synthesisRate)
Get rate to play the data.
|
void |
setChannelsPerFrame(int channelsPerFrame) |
void |
setFrameRate(double f) |
void |
setPitch(double pitch)
Set the recorded pitch as a fractional MIDI semitone value where 60 is
Middle C.
|
getReleaseBegin, getReleaseEnd, getSustainBegin, getSustainEnd, readDouble, setReleaseBegin, setReleaseEnd, setSustainBegin, setSustainEnd, writeDoublepublic abstract void allocate(int numFrames,
int channelsPerFrame)
public double getRateScaler(int index,
double synthesisRate)
SequentialDatagetRateScaler in interface SequentialDatagetRateScaler in class SequentialDataCommonpublic double getFrameRate()
public void setFrameRate(double f)
public int getNumFrames()
getNumFrames in interface SequentialDatagetNumFrames in class SequentialDataCommonpublic int getChannelsPerFrame()
getChannelsPerFrame in interface SequentialDatagetChannelsPerFrame in class SequentialDataCommonpublic void setChannelsPerFrame(int channelsPerFrame)
public void setPitch(double pitch)
pitch - public double getPitch()
public int getMarkerCount()
public SampleMarker getMarker(int index)
public void addMarker(SampleMarker marker)
marker -