public abstract class AudioSample extends SequentialDataCommon
Modifier and Type | Field and Description |
---|---|
protected int |
channelsPerFrame |
protected int |
numFrames |
maxFrames
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.
|
getMaxFrames, getReleaseBegin, getReleaseEnd, getSustainBegin, getSustainEnd, readDouble, setNumFrames, setReleaseBegin, setReleaseEnd, setSustainBegin, setSustainEnd, writeDouble
public abstract void allocate(int numFrames, int channelsPerFrame)
public double getRateScaler(int index, double synthesisRate)
SequentialData
getRateScaler
in interface SequentialData
getRateScaler
in class SequentialDataCommon
public double getFrameRate()
public void setFrameRate(double f)
public int getNumFrames()
getNumFrames
in interface SequentialData
getNumFrames
in class SequentialDataCommon
public int getChannelsPerFrame()
getChannelsPerFrame
in interface SequentialData
getChannelsPerFrame
in class SequentialDataCommon
public 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
-