public class Add extends UGen
UGen.OutputInitializationRegime, UGen.OutputPauseRegimebufferSize, bufIn, bufOut, context, ins, outputInitializationRegime, outputPauseRegime, outs| Constructor and Description |
|---|
Add(AudioContext context,
int channels,
float adder)
Constructor for an Add object that sets a static adder value.
|
Add(AudioContext context,
int channels,
UGen adderUGen)
Constructor for an Add object that sets a UGen to control the value to
add.
|
Add(AudioContext context,
UGen input,
UGen adderUGen)
Constructor for an Add object with a given UGen as input and another as adder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateBuffer()
Called by the signal chain to update this UGen's ouput data.
|
float |
getAdder()
Gets the current adder value.
|
UGen |
getAdderUGen()
Gets the adder UGen controller.
|
Add |
setAdder(float adder)
Sets the adder to a static float value.
|
Add |
setAdder(UGen adderUGen)
Sets a UGen to control the adder value.
|
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, zeroOutsgetKillListener, getName, isDeleted, isPaused, kill, message, messageReceived, setKillListener, setName, start, toStringpublic Add(AudioContext context, int channels, UGen adderUGen)
context - The audio context.channels - The number of channels.adderUGen - The adder UGen controller.public Add(AudioContext context, UGen input, UGen adderUGen)
context - the AudioContext.input - the input UGen.adderUGen - the adder UGen.public Add(AudioContext context, int channels, float adder)
context - The audio context.channels - The number of channels.adder - The value to add.public void calculateBuffer()
UGenUGen.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 UGenpublic float getAdder()
public Add setAdder(float adder)
adder - The new adder value.public Add setAdder(UGen adderUGen)
adderUGen - The adder UGen controller.public UGen getAdderUGen()