public class WaveShaper extends UGen
UGen.InputType, UGen.UGenInput| Modifier and Type | Field and Description |
|---|---|
UGen.UGenInput |
audio
The default input is "audio."
|
UGen.UGenInput |
mapAmplitude
The mapping amplitude of the input signal
|
UGen.UGenInput |
outAmplitude
The output amplitude
|
| Constructor and Description |
|---|
WaveShaper(float outAmp,
float mapAmp,
Waveform mapShape)
Constructor for WaveShaper.
|
WaveShaper(float outAmp,
float mapAmp,
Waveform mapShape,
boolean wrapMap)
Constructor for WaveShaper.
|
| Modifier and Type | Method and Description |
|---|---|
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, unpatchpublic UGen.UGenInput audio
public UGen.UGenInput outAmplitude
public UGen.UGenInput mapAmplitude
public WaveShaper(float outAmp,
float mapAmp,
Waveform mapShape)
outAmp - float: the output amplitude multiplier of the shaped wavemapAmp - float: amplitude over which to map the incoming signalmapShape - Waveform: waveshape over which to map the incoming signalpublic WaveShaper(float outAmp,
float mapAmp,
Waveform mapShape,
boolean wrapMap)
outAmp - float: the output amplitude multiplier of the shaped wavemapAmp - float: amplitude over which to map the incoming signalmapShape - Waveform: waveshape over which to map the incoming signalwrapMap - boolean: flag to wrap the map instead of hit the edge and stickprotected 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.