C# Class NAudio.Dsp.EnvelopeGenerator

Envelope generator (ADSR)
Afficher le fichier Open project: jishi/Jishi.StreamToSonos Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CalcCoef ( float rate, float targetRatio ) : float
SetTargetRatioA ( float targetRatio ) : void
SetTargetRatioDR ( float targetRatio ) : void

Method Details

EnvelopeGenerator() public méthode

Creates and Initializes an Envelope Generator
public EnvelopeGenerator ( ) : System
Résultat System

Gate() public méthode

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

GetOutput() public méthode

Get the current output level
public GetOutput ( ) : float
Résultat float

Process() public méthode

Read the next volume multiplier from the envelope generator
public Process ( ) : float
Résultat float

Reset() public méthode

Reset to idle state
public Reset ( ) : void
Résultat void