public class UGenChain extends UGen
UGen.calculateBuffer()
routine.UGen.OutputInitializationRegime, UGen.OutputPauseRegime
bufferSize, bufIn, bufOut, context, ins, outputInitializationRegime, outputPauseRegime, outs
Constructor and Description |
---|
UGenChain(AudioContext context,
int ins,
int outs) |
Modifier and Type | Method and Description |
---|---|
void |
addToChainOutput(int chainOutputIndex,
UGen sourceUGen)
Adds all of the outputs of a source UGen to a Chain output.
|
void |
addToChainOutput(int chainOutputIndex,
UGen sourceUGen,
int sourceOutputIndex)
Adds an output from a source UGen to a Chain output.
|
void |
addToChainOutput(UGen sourceUGen)
Adds the output of a source UGen to the Chain output.
|
void |
calculateBuffer()
Called by the signal chain to update this UGen's ouput data.
|
void |
drawFromChainInput(int chainInputIndex,
UGen targetUGen)
Adds the specified Chain input to all of a target UGen's inputs.
|
void |
drawFromChainInput(int chainInputIndex,
UGen targetUGen,
int targetInputIndex)
Adds the specified Chain input to a target UGen's input.
|
void |
drawFromChainInput(UGen targetUGen)
Adds the Chain inputs to the target UGen's inputs.
|
protected void |
postFrame()
Called after the signal chain is updated for this Chain.
|
protected void |
preFrame()
Called before the signal chain is updated for this Chain.
|
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 UGenChain(AudioContext context, int ins, int outs)
public void drawFromChainInput(UGen targetUGen)
targetUGen
- The target UGen.public void drawFromChainInput(int chainInputIndex, UGen targetUGen)
chainInputIndex
- The index of the Chain input.targetUGen
- The UGen to which to add the Chain input.public void drawFromChainInput(int chainInputIndex, UGen targetUGen, int targetInputIndex)
chainInputIndex
- The index of the Chain input.targetUGen
- The target UGen to which to add the Chain input.targetInputIndex
- The input of the target UGen.public void addToChainOutput(UGen sourceUGen)
sourceUGen
- The source UGen.public void addToChainOutput(int chainOutputIndex, UGen sourceUGen)
chainOutputIndex
- The Chain output.sourceUGen
- The source UGen.public void addToChainOutput(int chainOutputIndex, UGen sourceUGen, int sourceOutputIndex)
chainOutputIndex
- The Chain output.sourceUGen
- The source UGen.sourceOutputIndex
- The output of the source UGen to add to the Chain output.public final 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
protected void preFrame()
protected void postFrame()