public class Reciprocal extends UGen
UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
denominator
denominator is the default audio input
|
Constructor and Description |
---|
Reciprocal()
Constructs a Reciprocal with a denominator of 1.
|
Reciprocal(float fixedDenominator)
Constructs a Reciprocal with the given denominator value.
|
Modifier and Type | Method and Description |
---|---|
void |
setReciprocal(float fixedDenominator)
Used to change the fixedDenominator value after instantiation
|
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 UGen.UGenInput denominator
public Reciprocal()
public Reciprocal(float fixedDenominator)
fixedDenominator
- the denominator value if the input is never connectedpublic void setReciprocal(float fixedDenominator)
fixedDenominator
- the denominator value if the input is never connectedprotected 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
.