Class ChorusEffect
Chorus: a short LFO-modulated delay mixed with the dry signal to thicken and detune it. Classic single-LFO design applied to every channel.
public sealed class ChorusEffect : AudioEffect, IAudioEffect, IParameterized
- Inheritance
-
ChorusEffect
- Implements
- Inherited Members
Constructors
ChorusEffect()
Creates a chorus with a 50/50 default mix.
public ChorusEffect()
Properties
BaseDelayMs
Centre delay in milliseconds. Default 15 ms.
public float BaseDelayMs { get; set; }
Property Value
DepthMs
Modulation depth in milliseconds. Default 8 ms.
public float DepthMs { get; set; }
Property Value
Feedback
Feedback amount, 0 to < 1. Default 0.
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.8 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