13 #ifndef __COMPRESSOR_H__ 14 #define __COMPRESSOR_H__ 20 #define RMS_BUF_SIZE 64 21 static const int A_TBL = 256;
74 float rms_peak { .5 };
91 float _threshold = -10;
114 float _makeupGain = 1.0;
128 float ratio()
const {
return _ratio; }
129 float knee()
const {
return _knee; }
133 virtual void init(
float fsamp);
134 virtual void process(
int n,
float* inp,
float* out);
135 virtual const char*
name()
const {
return "SC4"; }
137 virtual const std::vector<ParDescr>& parDescr()
const;
139 virtual void setNValue(
int parameter,
double value);
140 virtual double nvalue(
int idx)
const;
float env_rms
Definition: compressor.h:65
float makeupGain() const
Definition: compressor.h:130
void setThreshold(float v)
Definition: compressor.h:119
float knee() const
Definition: compressor.h:129
#define RMS_BUF_SIZE
Definition: compressor.h:20
void setKnee(float v)
Definition: compressor.h:121
float env
Definition: compressor.h:64
Definition: effectgui.h:24
float sum
Definition: compressor.h:30
void setRatio(float v)
Definition: compressor.h:120
float amp
Definition: compressor.h:61
float env_peak
Definition: compressor.h:66
float sum
Definition: compressor.h:60
void setRmsPeak(float v)
Definition: compressor.h:116
float process(const float x)
Definition: compressor.h:39
unsigned int pos
Definition: compressor.h:29
float buffer[RMS_BUF_SIZE]
Definition: compressor.h:28
float sampleRate
Definition: compressor.h:58
float attack() const
Definition: compressor.h:125
float gain_t
Definition: compressor.h:63
float threshold() const
Definition: compressor.h:127
virtual const char * name() const
Definition: compressor.h:135
Definition: compressor.h:27
Definition: aeolus.cpp:26
float ratio() const
Definition: compressor.h:128
RmsEnv()
Definition: compressor.h:33
unsigned int count
Definition: compressor.h:67
void setAttack(float v)
Definition: compressor.h:117
Definition: synthesizerstate.h:40
void setRelease(float v)
Definition: compressor.h:118
Definition: compressor.h:54
void setMakeupGain(float v)
Definition: compressor.h:122
RmsEnv rms
Definition: compressor.h:59
float rmsPeak() const
Definition: compressor.h:124
float gain
Definition: compressor.h:62
float release() const
Definition: compressor.h:126