public class Plug extends UGen
UGen.OutputInitializationRegime, UGen.OutputPauseRegime
bufferSize, bufIn, bufOut, context, ins, outputInitializationRegime, outputPauseRegime, outs
Constructor and Description |
---|
Plug(AudioContext context)
Constructor for a one-channel Plug using the specified audio
context.
|
Plug(AudioContext context,
int channels)
Constructor for a Plug with the specified number of channels, using
the specified audio context.
|
Plug(AudioContext context,
UGen sourceUGen)
Constructor for a mono Plug that takes input from the specified source
UGen.
|
Plug(AudioContext context,
UGen sourceUGen,
int sourceOutputChannel)
Constructor for a mono Plug that takes input from the specified output
channel of a source UGen.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateBuffer()
Called by the signal chain to update this UGen's ouput data.
|
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 Plug(AudioContext context)
context
- The audio context.public Plug(AudioContext context, UGen sourceUGen)
context
- The audio context.souceUGen
- The source UGen.public Plug(AudioContext context, UGen sourceUGen, int sourceOutputChannel)
context
- The audio context.souceUGen
- The source UGen.sourceOutputChannel
- The channel from the source UGen to take as input.public Plug(AudioContext context, int channels)
context
- The audio context.channels
- The number of channels.public void calculateBuffer()
UGen
UGen.bufIn
and putting data
into UGen.bufOut
in some way. UGen.bufIn
and UGen.bufOut
are 2D arrays of floats of the form float[numChannels][bufferSize]. The length of the buffers is given by
UGen.bufferSize
, and the number of channels of the input and output buffers are given by UGen.ins
and UGen.outs
respectively.calculateBuffer
in class UGen