Class EnvelopeGenerator
Envelope generator (ADSR)
public class EnvelopeGenerator
- Inheritance
-
EnvelopeGenerator
- Inherited Members
Constructors
EnvelopeGenerator()
Creates and Initializes an Envelope Generator
public EnvelopeGenerator()
Properties
AttackRate
Attack Rate (seconds * SamplesPerSecond)
public float AttackRate { get; set; }
Property Value
DecayRate
Decay Rate (seconds * SamplesPerSecond)
public float DecayRate { get; set; }
Property Value
ReleaseRate
Release Rate (seconds * SamplesPerSecond)
public float ReleaseRate { get; set; }
Property Value
State
Current envelope state
public EnvelopeGenerator.EnvelopeState State { get; }
Property Value
SustainLevel
Sustain Level (1 = 100%)
public float SustainLevel { get; set; }
Property Value
Methods
Gate(bool)
Trigger the gate
public void Gate(bool gate)
Parameters
gateboolIf true, enter attack phase, if false enter release phase (unless already idle)
GetOutput()
Get the current output level
public float GetOutput()
Returns
Process()
Read the next volume multiplier from the envelope generator
public float Process()
Returns
- float
A volume multiplier
Reset()
Reset to idle state
public void Reset()