Class Flanger
java.lang.Object
de.pottgames.tuningfork.SoundEffectData
de.pottgames.tuningfork.Flanger
The flanger effect creates a “tearing” or “whooshing” sound (like a jet flying overhead). It works by sampling a portion of the input signal, delaying it by
a period modulated between 0 and 4ms by a low-frequency oscillator, and then mixing it with the source signal.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatRange: 0.0 - 0.004, Default: 0.002
The average amount of time the sample is delayed before it is played back; with feedback, the amount of time between iterations of the sample.floatRange: 0.0 - 1.0, Default: 1.0
The ratio by which the delay time is modulated by the LFO.floatRange: -1.0 - 1.0, Default: -0.5
This is the amount of the output signal level fed back into the effect’s input.intRange: -180 - 180, Default: 0
This changes the phase difference between the left and right LFO’s.floatRange: 0.0 - 10.0, Default: 0.27
The number of times per second the LFO controlling the amount of delay repeats.int0 = sinusoid, 1 = triangle
Selects the shape of the LFO waveform that controls the amount of the delay of the sampled signal. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
waveform
public int waveform0 = sinusoid, 1 = triangle
Selects the shape of the LFO waveform that controls the amount of the delay of the sampled signal. Zero is a sinusoid and one is a triangle. -
phase
public int phaseRange: -180 - 180, Default: 0
This changes the phase difference between the left and right LFO’s. At zero degrees the two LFOs are synchronized. -
rate
public float rateRange: 0.0 - 10.0, Default: 0.27
The number of times per second the LFO controlling the amount of delay repeats. Higher values increase the pitch modulation. -
depth
public float depthRange: 0.0 - 1.0, Default: 1.0
The ratio by which the delay time is modulated by the LFO. Use this parameter to increase the pitch modulation. -
feedback
public float feedbackRange: -1.0 - 1.0, Default: -0.5
This is the amount of the output signal level fed back into the effect’s input. A negative value will reverse the phase of the feedback signal. Use this parameter to create an “intense metallic” effect. At full magnitude, the identical sample will repeat endlessly. At less than full magnitude, the sample will repeat and fade out over time. -
delay
public float delayRange: 0.0 - 0.004, Default: 0.002
The average amount of time the sample is delayed before it is played back; with feedback, the amount of time between iterations of the sample.
-
-
Constructor Details
-
Flanger
public Flanger()
-
-
Method Details
-
robotHigh
-
robotLow
-
robotMetallic
-
apply
protected void apply(int effectId) - Specified by:
applyin classSoundEffectData
-
hashCode
-
equals
-
toString
-