|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.beadsproject.beads.core.Bead
net.beadsproject.beads.core.UGen
net.beadsproject.beads.ugens.DelayEvent
net.beadsproject.beads.ugens.DelayTrigger
public class DelayTrigger
A DelayTrigger waits for a specified duration and then notifies a receiver.
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 | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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 |
---|
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.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |