C# Класс NAudio.Dsp.EnvelopeGenerator

Envelope generator (ADSR)
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CalcCoef ( float rate, float targetRatio ) : float
SetTargetRatioA ( float targetRatio ) : void
SetTargetRatioDR ( float targetRatio ) : void

Описание методов

EnvelopeGenerator() публичный Метод

Creates and Initializes an Envelope Generator
public EnvelopeGenerator ( ) : System
Результат System

Gate() публичный Метод

Trigger the gate
public Gate ( bool gate ) : void
gate bool If true, enter attack phase, if false enter release phase (unless already idle)
Результат void

GetOutput() публичный Метод

Get the current output level
public GetOutput ( ) : float
Результат float

Process() публичный Метод

Read the next volume multiplier from the envelope generator
public Process ( ) : float
Результат float

Reset() публичный Метод

Reset to idle state
public Reset ( ) : void
Результат void