public interface SoundEvent
#play(UGen, DataBead)
and can be passed a DataBead
which can contain additional classes for controlling the event after it has been
triggered. The SoundEvent also gets passed a UGen
which it should connect to.
It should also return the UGen
which is its root, so that callers of the
SoundEvent can keep track of which SoundEvents are still alive.Modifier and Type | Method and Description |
---|---|
UGen |
play(UGen output,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Cause a SoundEvent to play.
|
UGen play(UGen output, java.util.Map<java.lang.String,java.lang.Object> parameters)
UGen
which is its
root, i.e., a UGen
which, if dead, indicates that the SoundEvent is dead.output
- the output.parameters
- additional data.UGen
which is the root of the SoundEvent.