public class Multiplier extends UGen
UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
amplitude
The amplitude input allows you to control the value being used for multiplying with another UGen.
|
UGen.UGenInput |
audio
The audio input is where incoming audio should be patched, but you can simply patch to the
Multiplier itself.
|
Constructor and Description |
---|
Multiplier()
Construct a Multiplier with a fixed value of 1, which will mean incoming audio is not changed.
|
Multiplier(float multValue)
Construct a Multiplier with the fixed value of multValue.
|
Modifier and Type | Method and Description |
---|---|
void |
setValue(float multValue)
Set the fixed value of this Multiplier.
|
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen.
|
addInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setAudioChannelCount, setSampleRate, tick, unpatch, unpatch
public UGen.UGenInput audio
public UGen.UGenInput amplitude
public Multiplier()
public Multiplier(float multValue)
multValue
- public void setValue(float multValue)
gainVal
- protected 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
.