public class DelayTrigger extends DelayEvent
UGen.OutputInitializationRegime, UGen.OutputPauseRegime
bufferSize, bufIn, bufOut, context, ins, outputInitializationRegime, outputPauseRegime, outs
Constructor and Description |
---|
DelayTrigger(AudioContext context,
double delay,
Bead receiver)
Instantiates a new DelayTrigger with the specified millisecond delay and
receiver.
|
DelayTrigger(AudioContext context,
double delay,
Bead receiver,
Bead message)
Instantiates a new DelayTrigger with the specified millisecond delay,
receiver, and message.
|
Modifier and Type | Method and Description |
---|---|
Bead |
getMessage()
Gets the message Bead that will be sent when the DelayMessage fires.
|
Bead |
getReceiver()
Gets this DelayMessage's receiver.
|
DelayTrigger |
setMessage(Bead message)
Sets the message to send when the DelayMessage fires.
|
DelayTrigger |
setReceiver(Bead receiver)
Sets this DelayMessage's receiver.
|
void |
trigger()
Called when the delay time has elapsed.
|
calculateBuffer, getCount, getSampleDelay, isTriggeredAfter, reset, setSampleDelay, triggeredAfter
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
getKillListener, getName, isDeleted, isPaused, kill, message, messageReceived, setKillListener, setName, start, toString
public DelayTrigger(AudioContext context, double delay, Bead receiver)
context
- the AudioContext.delay
- the delay in milliseconds.receiver
- the receiver.public DelayTrigger(AudioContext context, double delay, Bead receiver, Bead message)
context
- The audio context.delay
- The delay in milliseconds.receiver
- The receiver.public void trigger()
DelayEvent
trigger
in class DelayEvent
public Bead getReceiver()
public DelayTrigger setReceiver(Bead receiver)
receiver
- the new receiver.public Bead getMessage()
public DelayTrigger setMessage(Bead message)
message
- The message Bead.