Class FlangerEffect
Flanger: a very short LFO-modulated delay with feedback, producing the classic sweeping comb-filter "jet" effect. Feedback may be negative for an inverted (hollow) comb.
public sealed class FlangerEffect : AudioEffect, IAudioEffect, IParameterized
- Inheritance
-
FlangerEffect
- Implements
- Inherited Members
Constructors
FlangerEffect()
Creates a flanger with a 50/50 default mix.
public FlangerEffect()
Properties
BaseDelayMs
Centre delay in milliseconds. Default 1.5 ms.
public float BaseDelayMs { get; set; }
Property Value
DepthMs
Modulation depth in milliseconds. Default 2 ms.
public float DepthMs { get; set; }
Property Value
Feedback
Feedback amount, -0.99 to 0.99. Default 0.3.
public float Feedback { get; set; }
Property Value
Parameters
Generic parameter list (excludes Bypass/Mix, which are on the base).
public IReadOnlyList<EffectParameter> Parameters { get; }
Property Value
RateHz
Modulation rate in Hz. Default 0.3 Hz.
public float RateHz { get; set; }
Property Value
Methods
OnConfigure(WaveFormat)
Called by Configure(WaveFormat) after the format is stored. Derived effects allocate and size their sample-rate-dependent state here.
protected override void OnConfigure(WaveFormat format)
Parameters
formatWaveFormat
ProcessBlock(Span<float>)
Transforms buffer in place into the fully-wet signal. The
base class handles dry/wet mixing and bypass around this call.
protected override void ProcessBlock(Span<float> buffer)
Parameters
Reset()
Clears internal state (delay lines, envelopes, smoothers) so the next block starts as if from silence.
public override void Reset()
SyncToTempo(double, NoteDivision)
Locks RateHz to a tempo and note division.
public void SyncToTempo(double bpm, NoteDivision division)
Parameters
bpmdoubledivisionNoteDivision