Table of Contents

Struct SfzModulationEnvelope

Namespace
NAudio.Sfz
Assembly
NAudio.Core.dll

One per-region SFZ modulation envelope (fileg_ or pitcheg_): a DAHDSR shape in seconds (sustain as a percentage, default 100) and a modulation depth in cents. An envelope with zero depth modulates nothing.

public readonly struct SfzModulationEnvelope
Inherited Members

Constructors

SfzModulationEnvelope(float, float, float, float, float, float, float)

Creates the settings for one modulation envelope.

public SfzModulationEnvelope(float delaySeconds, float attackSeconds, float holdSeconds, float decaySeconds, float sustainPercent, float releaseSeconds, float depthCents)

Parameters

delaySeconds float
attackSeconds float
holdSeconds float
decaySeconds float
sustainPercent float
releaseSeconds float
depthCents float

Properties

AttackSeconds

Envelope attack in seconds (*eg_attack, default 0).

public float AttackSeconds { get; }

Property Value

float

DecaySeconds

Envelope decay in seconds (*eg_decay, default 0).

public float DecaySeconds { get; }

Property Value

float

DelaySeconds

Envelope delay in seconds (*eg_delay, default 0).

public float DelaySeconds { get; }

Property Value

float

DepthCents

Modulation depth in cents (*eg_depth, default 0).

public float DepthCents { get; }

Property Value

float

HoldSeconds

Envelope hold in seconds (*eg_hold, default 0).

public float HoldSeconds { get; }

Property Value

float

IsActive

Whether the envelope modulates anything: a non-zero depth.

public bool IsActive { get; }

Property Value

bool

ReleaseSeconds

Envelope release in seconds (*eg_release, default 0).

public float ReleaseSeconds { get; }

Property Value

float

SustainPercent

Envelope sustain level as a percentage (*eg_sustain, default 100).

public float SustainPercent { get; }

Property Value

float