Table of Contents

Struct SfzLfo

Namespace
NAudio.Sfz
Assembly
NAudio.Core.dll

One per-region SFZ LFO (amplfo_, fillfo_ or pitchlfo_*): a rate in Hz, a modulation depth (dB for the amplitude LFO, cents for the filter and pitch LFOs) and an onset delay in seconds. All values default to 0.

public readonly struct SfzLfo
Inherited Members

Constructors

SfzLfo(float, float, float)

Creates the settings for one LFO.

public SfzLfo(float frequencyHz, float depth, float delaySeconds)

Parameters

frequencyHz float
depth float
delaySeconds float

Properties

DelaySeconds

Delay before the LFO starts, in seconds (amplfo_delay/fillfo_delay/pitchlfo_delay, default 0).

public float DelaySeconds { get; }

Property Value

float

Depth

Modulation depth (amplfo_depth in dB; fillfo_depth/pitchlfo_depth in cents; default 0).

public float Depth { get; }

Property Value

float

FrequencyHz

LFO rate in Hz (amplfo_freq/fillfo_freq/pitchlfo_freq, default 0).

public float FrequencyHz { get; }

Property Value

float

IsActive

Whether the LFO modulates anything: a positive rate and a non-zero depth.

public bool IsActive { get; }

Property Value

bool