public class Constant extends UGen
UGen.InputType, UGen.UGenInput
Constructor and Description |
---|
Constant()
Empty constructor for Constant.
|
Constant(float val)
Constructor for Constant.
|
Modifier and Type | Method and Description |
---|---|
void |
setConstant(float val)
Sets the value of the Constant during execution.
|
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen.
|
addAudio, addControl, addControl, addInput, channelCount, channelCountChanged, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setChannelCount, setSampleRate, tick, unpatch, unpatch
public Constant()
public Constant(float val)
val
- float: the constant value this will outputpublic void setConstant(float val)
val
- float: the constant value this will outputprotected void uGenerate(float[] channels)
UGen
getLastValues
method of your audio UGenInput to
retrieve the audio you want to modify, which you will then modify however
you need to, assigning the result to the values in channels
.