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 value)
Construct a Multiplier with a fixed value.
|
Modifier and Type | Method and Description |
---|---|
void |
setValue(float value)
Set the amplitude of this Multiplier.
|
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 audio
public UGen.UGenInput amplitude
public Multiplier()
public Multiplier(float value)
value
- float: the amplitude for the Multiplierpublic void setValue(float value)
value
- float: the new amplitude for the Multiplierprotected 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
.