Table of Contents

Class FlangerEffect

Namespace
NAudio.Effects
Assembly
NAudio.Core.dll

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

float

DepthMs

Modulation depth in milliseconds. Default 2 ms.

public float DepthMs { get; set; }

Property Value

float

Feedback

Feedback amount, -0.99 to 0.99. Default 0.3.

public float Feedback { get; set; }

Property Value

float

Parameters

Generic parameter list (excludes Bypass/Mix, which are on the base).

public IReadOnlyList<EffectParameter> Parameters { get; }

Property Value

IReadOnlyList<EffectParameter>

RateHz

Modulation rate in Hz. Default 0.3 Hz.

public float RateHz { get; set; }

Property Value

float

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

format WaveFormat

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

buffer Span<float>

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

bpm double
division NoteDivision