Xeno-rat
Loading...
Searching...
No Matches
NAudio.Dsp.SimpleGate Class Reference
Inheritance diagram for NAudio.Dsp.SimpleGate:
Collaboration diagram for NAudio.Dsp.SimpleGate:

Public Member Functions

 SimpleGate ()
 
void Process (ref double in1, ref double in2)
 Processes the input stereo data using sidechain compression.
 
- Public Member Functions inherited from NAudio.Dsp.AttRelEnvelope
 AttRelEnvelope (double attackMilliseconds, double releaseMilliseconds, double sampleRate)
 
double Run (double inValue, double state)
 

Properties

double Threshold [get, set]
 
- Properties inherited from NAudio.Dsp.AttRelEnvelope
double Attack [get, set]
 
double Release [get, set]
 
double SampleRate [get, set]
 

Private Attributes

double threshdB
 
double thresh
 
double env
 

Additional Inherited Members

- Static Protected Attributes inherited from NAudio.Dsp.AttRelEnvelope
const double DC_OFFSET = 1.0E-25
 

Constructor & Destructor Documentation

◆ SimpleGate()

NAudio.Dsp.SimpleGate.SimpleGate ( )
inline

Member Function Documentation

◆ Process()

void NAudio.Dsp.SimpleGate.Process ( ref double in1,
ref double in2 )
inline

Processes the input stereo data using sidechain compression.

Parameters
in1The first input signal, passed by reference.
in2The second input signal, passed by reference.

This method processes the input stereo data using sidechain compression. It first rectifies the input signals, then determines the key signal by selecting the greater of the two rectified signals. The key signal is compared to a threshold, and based on the result, an attack/release process is applied to generate an envelope. The envelope is then used to apply gain reduction to the input signals, resulting in the processed stereo data.

Here is the call graph for this function:

Member Data Documentation

◆ env

double NAudio.Dsp.SimpleGate.env
private

◆ thresh

double NAudio.Dsp.SimpleGate.thresh
private

◆ threshdB

double NAudio.Dsp.SimpleGate.threshdB
private

Property Documentation

◆ Threshold

double NAudio.Dsp.SimpleGate.Threshold
getset

The documentation for this class was generated from the following file: