net.beadsproject.beads.ugens
Class DelayData

java.lang.Object
  extended by net.beadsproject.beads.core.Bead
      extended by net.beadsproject.beads.core.UGen
          extended by net.beadsproject.beads.ugens.DelayEvent
              extended by net.beadsproject.beads.ugens.DelayData

public class DelayData
extends DelayEvent

DelayData waits for a specified duration and then sends a DataBead message to a receiver.

Version:
0.9.5
Author:
Benito Crawford

Nested Class Summary
 
Nested classes/interfaces inherited from class net.beadsproject.beads.core.UGen
UGen.OutputInitializationRegime, UGen.OutputPauseRegime
 
Field Summary
 
Fields inherited from class net.beadsproject.beads.core.UGen
bufferSize, bufIn, bufOut, context, ins, outputInitializationRegime, outputPauseRegime, outs
 
Constructor Summary
DelayData(AudioContext context, double delay, DataBeadReceiver receiver, DataBead db)
          Instantiates a new DelayMessage with the specified millisecond delay, receiver, and DataBead message.
 
Method Summary
 DataBead getData()
          Gets the DataBead that will be sent when the DelayData fires.
 DataBeadReceiver getReceiver()
          Gets this DelayTrigger's receiver.
 DelayData setData(DataBead db)
          Sets the message to send when the DelayData fires.
 DelayData setReceiver(DataBeadReceiver receiver)
          Sets this DelayData's receiver.
 void trigger()
          Called when the delay time has elapsed.
 
Methods inherited from class net.beadsproject.beads.ugens.DelayEvent
calculateBuffer, getCount, getSampleDelay, isTriggeredAfter, reset, setSampleDelay, triggeredAfter
 
Methods inherited from class net.beadsproject.beads.core.UGen
addDependent, addInput, addInput, clearDependents, clearInputConnections, containsInput, crossfadeInput, getConnectedInputs, getContext, getEnvelopes, getIns, getNumberOfConnectedUGens, getNumberOfDependents, getOutBuffer, getOuts, getTimeTakenLastUpdate, getValue, getValue, getValueDouble, getValueDouble, initializeOuts, isTimerMode, isUpdated, noInputs, pause, printInBuffers, printInputList, printOutBuffers, removeAllConnections, removeConnection, removeDependent, setOutsToPause, setTimerMode, setValue, update, zeroIns, zeroOuts
 
Methods inherited from class net.beadsproject.beads.core.Bead
getKillListener, getName, isDeleted, isPaused, kill, message, messageReceived, setKillListener, setName, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelayData

public DelayData(AudioContext context,
                 double delay,
                 DataBeadReceiver receiver,
                 DataBead db)
Instantiates a new DelayMessage with the specified millisecond delay, receiver, and DataBead message.

Parameters:
context - The audio context.
delay - The delay time in milliseconds.
receiver - The DataBead receiver.
db - The DataBead to send.
Method Detail

trigger

public void trigger()
Description copied from class: DelayEvent
Called when the delay time has elapsed. Implement this method with code to be executed after the delay.

Specified by:
trigger in class DelayEvent

getReceiver

public DataBeadReceiver getReceiver()
Gets this DelayTrigger's receiver.

Returns:
the receiver.

setReceiver

public DelayData setReceiver(DataBeadReceiver receiver)
Sets this DelayData's receiver.

Parameters:
receiver - the new receiver.
Returns:
This DelayData instance.

getData

public DataBead getData()
Gets the DataBead that will be sent when the DelayData fires.

Returns:
The DataBead to be sent.

setData

public DelayData setData(DataBead db)
Sets the message to send when the DelayData fires.

Parameters:
dataBead - The DataBead to be sent.
Returns:
This DelayData instance.