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, unpatchprotected void addInput(UGen input)
UGenprotected void removeInput(UGen input)
UGenremoveInput in class UGenprotected void sampleRateChanged()
UGensampleRateChanged in class UGenprotected void uGenerate(float[] channels)
UGengetLastValues 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 AudioSignalmono - the float array to fillpublic void generate(float[] left,
float[] right)
AudioSignalleft 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 AudioSignalleft - the left channelright - the right channel