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

Public Member Functions

 SimpleCompressor (double attackTime, double releaseTime, double sampleRate)
 
 SimpleCompressor ()
 
void InitRuntime ()
 Initializes the runtime by setting the environment dB to the DC offset value.
 
void Process (ref double in1, ref double in2)
 Processes the input signals using a dynamic range compressor.
 
- Public Member Functions inherited from NAudio.Dsp.AttRelEnvelope
 AttRelEnvelope (double attackMilliseconds, double releaseMilliseconds, double sampleRate)
 
double Run (double inValue, double state)
 

Properties

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

Private Attributes

double envdB
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ SimpleCompressor() [1/2]

NAudio.Dsp.SimpleCompressor.SimpleCompressor ( double attackTime,
double releaseTime,
double sampleRate )
inline

◆ SimpleCompressor() [2/2]

NAudio.Dsp.SimpleCompressor.SimpleCompressor ( )
inline

Member Function Documentation

◆ InitRuntime()

void NAudio.Dsp.SimpleCompressor.InitRuntime ( )
inline

Initializes the runtime by setting the environment dB to the DC offset value.

◆ Process()

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

Processes the input signals using a dynamic range compressor.

Parameters
in1The first input signal to be processed.
in2The second input signal to be processed.

This method processes the input signals using a dynamic range compressor, which involves rectifying the input signals, applying threshold, attack/release envelope, transfer function, and output gain. The method modifies the original input signals in place.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ envdB

double NAudio.Dsp.SimpleCompressor.envdB
private

Property Documentation

◆ MakeUpGain

double NAudio.Dsp.SimpleCompressor.MakeUpGain
getset

◆ Ratio

double NAudio.Dsp.SimpleCompressor.Ratio
getset

◆ Threshold

double NAudio.Dsp.SimpleCompressor.Threshold
getset

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