com.softsynth.jsyn
Class SynthEnvelopeQueue

java.lang.Object
  extended by com.softsynth.jsyn.SynthPort
      extended by com.softsynth.jsyn.SynthDataQueue
          extended by com.softsynth.jsyn.SynthEnvelopeQueue

public class SynthEnvelopeQueue
extends SynthDataQueue

SynthEnvelopeQueue class for Java Audio Synthesis

Author:
(C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
See Also:
SynthEnvelope

Method Summary
 void queue(int time, SynthEnvelope envelope)
           
 void queue(int time, SynthEnvelope envelope, int startFrame, int numFrames)
          Queue all or a portion of this envelope to be played once by this SynthUnit.
 void queue(SynthEnvelope envelope)
          Queue entire envelope to play once.
 void queue(SynthEnvelope envelope, int startFrame, int numFrames)
           
 void queue(SynthEnvelope envelope, int startFrame, int numFrames, int flags)
          Queue all or a portion of this data to be played once on this SynthEnvelopeQueue.
 void queueLoop(int time, SynthEnvelope envelope)
           
 void queueLoop(int time, SynthEnvelope envelope, int startFrame, int numFrames)
          Queue all or a portion of this envelope to be played in a loop by this SynthUnit.
 void queueLoop(SynthEnvelope envelope)
           
 void queueLoop(SynthEnvelope envelope, int startFrame, int numFrames)
          Queue all or a portion of this envelope to be played by this SynthUnit in a loop.
 void queueOff(int time, SynthEnvelope envelope)
           
 void queueOff(int time, SynthEnvelope envelope, boolean ifStop)
          Convenience method that will queue the decay portion of a envelope, or the gap and release loop portions if they exist.
 void queueOff(SynthEnvelope envelope)
           
 void queueOn(int time, SynthEnvelope envelope)
          Convenience method that will queue the attack portion of a envelope and the sustain loop if it exists.
 void queueOn(SynthEnvelope envelope)
           
 
Methods inherited from class com.softsynth.jsyn.SynthDataQueue
clear, clear, getNumFramesMoved, getNumFramesMoved, queue, queue, queue, queue, queueLoop, queueLoop, queueOff, queueOff, queueOff, queueOn, queueOn
 
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

queue

public void queue(SynthEnvelope envelope,
                  int startFrame,
                  int numFrames,
                  int flags)
           throws SynthException
Queue all or a portion of this data to be played once on this SynthEnvelopeQueue. If FLAG_AUTO_STOP is set then the unit will stop when the data is finished. If a unit is inside a circuit, then the circuit will be stopped. If that circuit is inside other circuits, then the highest level circuit will be stopped.

Throws:
SynthException - If frames are out of range.

queue

public void queue(SynthEnvelope envelope,
                  int startFrame,
                  int numFrames)
           throws SynthException
Throws:
SynthException

queue

public void queue(SynthEnvelope envelope)
           throws SynthException
Queue entire envelope to play once.

Throws:
SynthException

queueLoop

public void queueLoop(SynthEnvelope envelope,
                      int startFrame,
                      int numFrames)
               throws SynthException
Queue all or a portion of this envelope to be played by this SynthUnit in a loop. If there is any envelope data after this in the queue then this portion will not be played.

Throws:
SynthException - If frames are out of range.

queueLoop

public void queueLoop(SynthEnvelope envelope)
               throws SynthException
Throws:
SynthException

queue

public void queue(int time,
                  SynthEnvelope envelope,
                  int startFrame,
                  int numFrames)
           throws SynthException
Queue all or a portion of this envelope to be played once by this SynthUnit. The request will be placed in the queue at the specified time. The data will then be played when it reaches the front of the queue.

Throws:
SynthException - If frames are out of range.

queue

public void queue(int time,
                  SynthEnvelope envelope)
           throws SynthException
Throws:
SynthException

queueLoop

public void queueLoop(int time,
                      SynthEnvelope envelope,
                      int startFrame,
                      int numFrames)
               throws SynthException
Queue all or a portion of this envelope to be played in a loop by this SynthUnit. The request will be placed in the queue at the specified time. The data will then be played when it reaches the front of the queue.

Throws:
SynthException - If frames are out of range.

queueLoop

public void queueLoop(int time,
                      SynthEnvelope envelope)
               throws SynthException
Throws:
SynthException

queueOn

public void queueOn(int time,
                    SynthEnvelope envelope)
             throws SynthException
Convenience method that will queue the attack portion of a envelope and the sustain loop if it exists. This could be used to implement a NoteOn method.

Throws:
SynthException - TBD

queueOn

public void queueOn(SynthEnvelope envelope)
             throws SynthException
Throws:
SynthException

queueOff

public void queueOff(int time,
                     SynthEnvelope envelope,
                     boolean ifStop)
              throws SynthException
Convenience method that will queue the decay portion of a envelope, or the gap and release loop portions if they exist. This could be used to implement a NoteOff method.

Throws:
SynthException - TBD

queueOff

public void queueOff(int time,
                     SynthEnvelope envelope)
              throws SynthException
Throws:
SynthException

queueOff

public void queueOff(SynthEnvelope envelope)
              throws SynthException
Throws:
SynthException