public class ModelByteBufferWavetable extends java.lang.Object implements ModelWavetable
LOOP_TYPE_FORWARD, LOOP_TYPE_OFF, LOOP_TYPE_PINGPONG, LOOP_TYPE_RELEASE, LOOP_TYPE_REVERSE
Constructor and Description |
---|
ModelByteBufferWavetable(ModelByteBuffer buffer) |
ModelByteBufferWavetable(ModelByteBuffer buffer,
javax.sound.sampled.AudioFormat format) |
ModelByteBufferWavetable(ModelByteBuffer buffer,
javax.sound.sampled.AudioFormat format,
float pitchcorrection) |
ModelByteBufferWavetable(ModelByteBuffer buffer,
float pitchcorrection) |
Modifier and Type | Method and Description |
---|---|
ModelByteBuffer |
get8BitExtensionBuffer() |
float |
getAttenuation()
Attenuation is in cB.
|
ModelByteBuffer |
getBuffer() |
int |
getChannels() |
javax.sound.sampled.AudioFormat |
getFormat() |
float |
getLoopLength() |
float |
getLoopStart() |
int |
getLoopType() |
float |
getPitchcorrection() |
ModelOscillatorStream |
open(float samplerate) |
AudioFloatInputStream |
openStream() |
void |
set8BitExtensionBuffer(ModelByteBuffer buffer) |
void |
setAttenuation(float attenuation) |
void |
setLoopLength(float loopLength) |
void |
setLoopStart(float loopStart) |
void |
setLoopType(int loopType) |
void |
setPitchcorrection(float pitchcorrection) |
public ModelByteBufferWavetable(ModelByteBuffer buffer)
public ModelByteBufferWavetable(ModelByteBuffer buffer, float pitchcorrection)
public ModelByteBufferWavetable(ModelByteBuffer buffer, javax.sound.sampled.AudioFormat format)
public ModelByteBufferWavetable(ModelByteBuffer buffer, javax.sound.sampled.AudioFormat format, float pitchcorrection)
public void set8BitExtensionBuffer(ModelByteBuffer buffer)
public ModelByteBuffer get8BitExtensionBuffer()
public ModelByteBuffer getBuffer()
public javax.sound.sampled.AudioFormat getFormat()
public AudioFloatInputStream openStream()
openStream
in interface ModelWavetable
public int getChannels()
getChannels
in interface ModelOscillator
public ModelOscillatorStream open(float samplerate)
open
in interface ModelOscillator
public float getAttenuation()
ModelOscillator
getAttenuation
in interface ModelOscillator
public void setAttenuation(float attenuation)
public float getLoopLength()
getLoopLength
in interface ModelWavetable
public void setLoopLength(float loopLength)
public float getLoopStart()
getLoopStart
in interface ModelWavetable
public void setLoopStart(float loopStart)
public void setLoopType(int loopType)
public int getLoopType()
getLoopType
in interface ModelWavetable
public float getPitchcorrection()
getPitchcorrection
in interface ModelWavetable
public void setPitchcorrection(float pitchcorrection)