|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jsyn.SynthPort com.softsynth.jsyn.SynthDataQueue
public class SynthDataQueue
SynthDataQueue class for Java Audio Synthesis. Root class for SynthEnvelopeQueue and SynthSampleQueue.
Method Summary | |
---|---|
void |
clear()
Clear any data on this queue. |
void |
clear(int time)
|
int |
getNumFramesMoved()
|
int |
getNumFramesMoved(int partIndex)
The SynthDataQueue tallies the number of frames played. |
void |
queue(int time,
SynthChannelData channelData,
int startFrame,
int numFrames)
|
void |
queue(int time,
SynthChannelData channelData,
int startFrame,
int numFrames,
int flags)
|
void |
queue(SynthChannelData channelData,
int startFrame,
int numFrames)
|
void |
queue(SynthChannelData channelData,
int startFrame,
int numFrames,
int flags)
|
void |
queueLoop(int time,
SynthChannelData channelData,
int startFrame,
int numFrames)
|
void |
queueLoop(SynthChannelData channelData,
int startFrame,
int numFrames)
|
void |
queueOff(int time,
SynthChannelData channelData)
Passes false to queueOff for ifStop |
void |
queueOff(int time,
SynthChannelData channelData,
boolean ifStop)
Convenience method that will queue the decay portion of a channelData, or the gap and release loop portions if they exist. |
void |
queueOff(SynthChannelData channelData)
|
void |
queueOn(int time,
SynthChannelData channelData)
Convenience method that will queue the attack portion of a channelData and the sustain loop if it exists. |
void |
queueOn(SynthChannelData channelData)
|
Methods inherited from class com.softsynth.jsyn.SynthPort |
---|
getAlias, getName, getNumParts, getSignalType, getSignalType, getSound, setAlias, setSignalType, setSignalType, setSignalType, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void clear() throws SynthException
SynthException
- If queue name is not recognized.public void clear(int time) throws SynthException
SynthException
public void queue(SynthChannelData channelData, int startFrame, int numFrames, int flags) throws SynthException
SynthException
public void queue(SynthChannelData channelData, int startFrame, int numFrames) throws SynthException
SynthException
public void queueLoop(SynthChannelData channelData, int startFrame, int numFrames) throws SynthException
SynthException
public void queue(int time, SynthChannelData channelData, int startFrame, int numFrames, int flags) throws SynthException
SynthException
public void queue(int time, SynthChannelData channelData, int startFrame, int numFrames) throws SynthException
SynthException
public void queueLoop(int time, SynthChannelData channelData, int startFrame, int numFrames) throws SynthException
SynthException
public void queueOn(int time, SynthChannelData channelData) throws SynthException
SynthException
- When placement in the queue fails.public void queueOn(SynthChannelData channelData) throws SynthException
SynthException
public void queueOff(int time, SynthChannelData channelData, boolean ifStop) throws SynthException
SynthException
- When placement in the queue fails.public void queueOff(int time, SynthChannelData channelData) throws SynthException
SynthException
- When placement in the queue fails.public void queueOff(SynthChannelData channelData) throws SynthException
SynthException
public int getNumFramesMoved(int partIndex) throws SynthException
int framesWhenDone = 0;When you queue an envelope with numFrames, then:
framesWhenDone += numFrames;To check for completion:
boolean stillPlaying = ((myEnvPlayer.envelopePort.getNumFramesMoved() - framesWhenDone) < 0);
SynthException
- If port name is not recognized, or index out of range.public int getNumFramesMoved() throws SynthException
SynthException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |