com.sun.media.sound
Class ModelByteBufferWavetable
java.lang.Object
com.sun.media.sound.ModelByteBufferWavetable
- All Implemented Interfaces:
- ModelOscillator, ModelWavetable
public class ModelByteBufferWavetable
- extends java.lang.Object
- implements ModelWavetable
Wavetable oscillator for pre-loaded data.
- Author:
- Karl Helgason
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelByteBufferWavetable
public ModelByteBufferWavetable(ModelByteBuffer buffer)
ModelByteBufferWavetable
public ModelByteBufferWavetable(ModelByteBuffer buffer,
float pitchcorrection)
ModelByteBufferWavetable
public ModelByteBufferWavetable(ModelByteBuffer buffer,
javax.sound.sampled.AudioFormat format)
ModelByteBufferWavetable
public ModelByteBufferWavetable(ModelByteBuffer buffer,
javax.sound.sampled.AudioFormat format,
float pitchcorrection)
set8BitExtensionBuffer
public void set8BitExtensionBuffer(ModelByteBuffer buffer)
get8BitExtensionBuffer
public ModelByteBuffer get8BitExtensionBuffer()
getBuffer
public ModelByteBuffer getBuffer()
getFormat
public javax.sound.sampled.AudioFormat getFormat()
openStream
public AudioFloatInputStream openStream()
- Specified by:
openStream
in interface ModelWavetable
getChannels
public int getChannels()
- Specified by:
getChannels
in interface ModelOscillator
open
public ModelOscillatorStream open(float samplerate)
- Specified by:
open
in interface ModelOscillator
getAttenuation
public float getAttenuation()
- Description copied from interface:
ModelOscillator
- Attenuation is in cB.
- Specified by:
getAttenuation
in interface ModelOscillator
- Returns:
setAttenuation
public void setAttenuation(float attenuation)
getLoopLength
public float getLoopLength()
- Specified by:
getLoopLength
in interface ModelWavetable
setLoopLength
public void setLoopLength(float loopLength)
getLoopStart
public float getLoopStart()
- Specified by:
getLoopStart
in interface ModelWavetable
setLoopStart
public void setLoopStart(float loopStart)
setLoopType
public void setLoopType(int loopType)
getLoopType
public int getLoopType()
- Specified by:
getLoopType
in interface ModelWavetable
getPitchcorrection
public float getPitchcorrection()
- Specified by:
getPitchcorrection
in interface ModelWavetable
setPitchcorrection
public void setPitchcorrection(float pitchcorrection)