public class Flanger extends UGen
Inputs for the Flanger are:
A more thorough description can be found on wikipedia: http://en.wikipedia.org/wiki/Flanging
UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
audio
Where the input goes.
|
UGen.UGenInput |
delay
How much does the flanger delay the incoming signal.
|
UGen.UGenInput |
depth
How many milliseconds the LFO increases the delay by at the maximum.
|
UGen.UGenInput |
dry
How much of the dry signal is added to the output.
|
UGen.UGenInput |
feedback
How much of the flanged signal is fed back into the effect.
|
UGen.UGenInput |
rate
The frequency of the LFO applied to the delay.
|
UGen.UGenInput |
wet
How much of the flanged signal is added to the output.
|
Constructor and Description |
---|
Flanger(float delayLength,
float lfoRate,
float delayDepth,
float feedbackAmplitude,
float dryAmplitude,
float wetAmplitude)
Construct a Flanger by specifying all initial values.
|
Modifier and Type | Method and Description |
---|---|
protected void |
channelCountChanged()
This method is only called when setChannelCount results in the channel count
of this UGen actually changing.
|
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[] out)
Implement this method when you extend UGen.
|
addAudio, addControl, addControl, addInput, channelCount, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, setChannelCount, setSampleRate, tick, unpatch, unpatch
public UGen.UGenInput audio
public UGen.UGenInput delay
public UGen.UGenInput rate
public UGen.UGenInput depth
public UGen.UGenInput feedback
public UGen.UGenInput dry
public UGen.UGenInput wet
public Flanger(float delayLength, float lfoRate, float delayDepth, float feedbackAmplitude, float dryAmplitude, float wetAmplitude)
delayLength
- float: the minimum delay applied to incoming samples (in milliseconds)lfoRate
- float: the frequency of the the LFOdelayDepth
- float: the maximum amount added to the delay by the LFO (in milliseconds)feedbackAmplitude
- float: the amount of the flanged signal fed back into the effectdryAmplitude
- float: the amount of incoming signal added to the outputwetAmplitude
- float: the amount of the flanged signal added to the outputprotected void sampleRateChanged()
UGen
sampleRateChanged
in class UGen
protected void channelCountChanged()
UGen
channelCountChanged
in class UGen
protected void uGenerate(float[] out)
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
.