net.beadsproject.beads.ugens
Class DelayData
java.lang.Object
net.beadsproject.beads.core.Bead
net.beadsproject.beads.core.UGen
net.beadsproject.beads.ugens.DelayEvent
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
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 |
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.
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.