Struct SfzModulationEnvelope
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
delaySecondsfloatattackSecondsfloatholdSecondsfloatdecaySecondsfloatsustainPercentfloatreleaseSecondsfloatdepthCentsfloat
Properties
AttackSeconds
Envelope attack in seconds (*eg_attack, default 0).
public float AttackSeconds { get; }
Property Value
DecaySeconds
Envelope decay in seconds (*eg_decay, default 0).
public float DecaySeconds { get; }
Property Value
DelaySeconds
Envelope delay in seconds (*eg_delay, default 0).
public float DelaySeconds { get; }
Property Value
DepthCents
Modulation depth in cents (*eg_depth, default 0).
public float DepthCents { get; }
Property Value
HoldSeconds
Envelope hold in seconds (*eg_hold, default 0).
public float HoldSeconds { get; }
Property Value
IsActive
Whether the envelope modulates anything: a non-zero depth.
public bool IsActive { get; }
Property Value
ReleaseSeconds
Envelope release in seconds (*eg_release, default 0).
public float ReleaseSeconds { get; }
Property Value
SustainPercent
Envelope sustain level as a percentage (*eg_sustain, default 100).
public float SustainPercent { get; }