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 ModelWavetablepublic int getChannels()
getChannels in interface ModelOscillatorpublic ModelOscillatorStream open(float samplerate)
open in interface ModelOscillatorpublic float getAttenuation()
ModelOscillatorgetAttenuation in interface ModelOscillatorpublic void setAttenuation(float attenuation)
public float getLoopLength()
getLoopLength in interface ModelWavetablepublic void setLoopLength(float loopLength)
public float getLoopStart()
getLoopStart in interface ModelWavetablepublic void setLoopStart(float loopStart)
public void setLoopType(int loopType)
public int getLoopType()
getLoopType in interface ModelWavetablepublic float getPitchcorrection()
getPitchcorrection in interface ModelWavetablepublic void setPitchcorrection(float pitchcorrection)