public class Delay extends UGen
UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
audio
where the incoming audio is patched
|
UGen.UGenInput |
delAmp
the strength of each repetition compared to the previous.
|
UGen.UGenInput |
delTime
the time for delay between repetitions.
|
Constructor and Description |
---|
Delay()
Constructs a Delay.
|
Delay(float maxDelayTime)
Constructs a Delay.
|
Delay(float maxDelayTime,
float amplitudeFactor)
Constructs a Delay.
|
Delay(float maxDelayTime,
float amplitudeFactor,
boolean feedBackOn)
Constructs a Delay.
|
Delay(float maxDelayTime,
float amplitudeFactor,
boolean feedBackOn,
boolean passAudioOn)
Constructs a Delay.
|
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.
|
void |
setDelAmp(float delayAmplitude)
Changes the feedback amplification of the echos.
|
void |
setDelTime(float delayTime)
Changes the time in between the echos to the value specified.
|
protected void |
uGenerate(float[] channels)
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 delTime
public UGen.UGenInput delAmp
public Delay()
public Delay(float maxDelayTime)
maxDelayTime
- float: is the maximum delay time for any one echo and the default echo time.public Delay(float maxDelayTime, float amplitudeFactor)
maxDelayTime
- float: is the maximum delay time for any one echo and the default echo time.amplitudeFactor
- float: is the amplification factor for feedback and should generally be from 0 to 1.public Delay(float maxDelayTime, float amplitudeFactor, boolean feedBackOn)
maxDelayTime
- float: is the maximum delay time for any one echo and the default echo time.amplitudeFactor
- float: is the amplification factor for feedback and should generally be from 0 to 1.feedBackOn
- float: is a boolean flag specifying if the repetition continue to feed back.public Delay(float maxDelayTime, float amplitudeFactor, boolean feedBackOn, boolean passAudioOn)
maxDelayTime
- float: is the maximum delay time for any one echo and the default echo time.amplitudeFactor
- float: is the amplification factor for feedback and should generally be from 0 to 1.feedBackOn
- float: is a boolean flag specifying if the repetition continue to feed back.passAudioOn
- float: is a boolean value specifying whether to pass the input audio to the output as well.protected void sampleRateChanged()
UGen
sampleRateChanged
in class UGen
protected void channelCountChanged()
UGen
channelCountChanged
in class UGen
public void setDelTime(float delayTime)
delayTime
- float: It can be up to the maxDelayTime specified.
The lowest it can be is 1/sampleRate.public void setDelAmp(float delayAmplitude)
delayAmplitude
- float: This should normally be between 0 and 1 for decreasing feedback.
Phase inverted feedback can be generated with negative numbers, but each echo
will be the inverse of the one before it.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
.