Dynamic range compressor.
More...
#include <compressor.h>
◆ Compressor()
| dsplib::Compressor::Compressor |
( |
int |
sample_rate = 44100, |
|
|
real_t |
threshold = -10.0, |
|
|
int |
ratio = 5, |
|
|
real_t |
knee_width = 0, |
|
|
real_t |
attack_time = 0.01, |
|
|
real_t |
release_time = 0.2 |
|
) |
| |
|
inlineexplicit |
Construct a new Compressor object.
- Parameters
-
| sample_rate | Input sample rate (Hz) |
| threshold | the level (dB) above which gain is applied to the input signal. |
| ratio | the input/output ratio for signals that overshoot the operation threshold (>=1). |
| knee_width | the transition area in the compression characteristic. |
| attack_time | the time (sec) it takes the compressor gain to rise from 10% to 90% of its final value when the input goes above the threshold. |
| release_time | the time (sec) it takes the compressor gain to drop from 90% to 10% of its final value when the input goes below the threshold. |
◆ operator()()
Process audio frame, obj(x) syntax.
- See also
- process
◆ process()
Process audio frame.
- Parameters
-
- Returns
- Result [out] Output pair processed and gain
The documentation for this class was generated from the following file:
- /home/runner/work/dsplib/dsplib/include/dsplib/audio/compressor.h