public class Summer extends UGen implements AudioSignal
UGen.InputType, UGen.UGenInput
Constructor and Description |
---|
Summer()
Constructs a Summer that you can patch multiple UGens to.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addInput(UGen input)
If you want to do something other than the default behavior when your
UGen is patched to, you can override this method in your derived class.
|
void |
generate(float[] mono)
Generates a buffer of samples by ticking this UGen mono.length times.
|
void |
generate(float[] left,
float[] right)
Fills
left and right with values in the range
of [-1, 1]. |
protected void |
processSampleFrame(float[] in,
float[] out) |
protected void |
removeInput(UGen input)
If you need to do something specific when something is unpatched from
your UGen, you can override this method.
|
protected void |
sampleRateChanged()
Override this method in your derived class to receive a notification when
the sample rate of your UGen has changed.
|
protected void |
uGenerate(float[] channels)
Implement this method when you extend UGen.
|
getLastValues, patch, patch, patch, printInputs, sampleRate, setAudioChannelCount, setSampleRate, tick, unpatch, unpatch
protected void addInput(UGen input)
UGen
protected void removeInput(UGen input)
UGen
removeInput
in class UGen
protected void sampleRateChanged()
UGen
sampleRateChanged
in class UGen
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
.protected void processSampleFrame(float[] in, float[] out)
public void generate(float[] mono)
generate
in interface AudioSignal
mono
- the float array to fillpublic void generate(float[] left, float[] right)
AudioSignal
left
and right
with values in the range
of [-1, 1]. left
represents the left channel of a stereo
signal, right
represents the right channel of that same
stereo signal.generate
in interface AudioSignal
left
- the left channelright
- the right channel