C# Class NAudio.Dsp.EnvelopeGenerator

Envelope generator (ADSR)
Datei anzeigen Open project: jishi/Jishi.StreamToSonos Class Usage Examples

Public Methods

Method Description
EnvelopeGenerator ( ) : System

Creates and Initializes an Envelope Generator

Gate ( bool gate ) : void

Trigger the gate

GetOutput ( ) : float

Get the current output level

Process ( ) : float

Read the next volume multiplier from the envelope generator

Reset ( ) : void

Reset to idle state

Private Methods

Method Description
CalcCoef ( float rate, float targetRatio ) : float
SetTargetRatioA ( float targetRatio ) : void
SetTargetRatioDR ( float targetRatio ) : void

Method Details

EnvelopeGenerator() public method

Creates and Initializes an Envelope Generator
public EnvelopeGenerator ( ) : System
return System

Gate() public method

Trigger the gate
public Gate ( bool gate ) : void
gate bool If true, enter attack phase, if false enter release phase (unless already idle)
return void

GetOutput() public method

Get the current output level
public GetOutput ( ) : float
return float

Process() public method

Read the next volume multiplier from the envelope generator
public Process ( ) : float
return float

Reset() public method

Reset to idle state
public Reset ( ) : void
return void