The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Soft clipper signal processing implementation. More...
Public Member Functions | |
softclipper_t (const softclipper_variables_t &v, const mhaconfig_t &tf) | |
Constructor, copies information from parameters and initializes state. More... | |
mha_real_t | process (mha_wave_t *s) |
Process one block of audio signal. More... | |
Private Attributes | |
MHAFilter::o1flt_lowpass_t | attack |
Attack filter. More... | |
MHAFilter::o1flt_maxtrack_t | decay |
Decay filter. More... | |
MHAFilter::o1flt_lowpass_t | clipmeter |
Clipping ratio filter. More... | |
mha_real_t | threshold |
Compression onset value. More... | |
mha_real_t | hardlimit |
Maximum output amplitude of softclipper. More... | |
mha_real_t | slope |
Compression slope. More... | |
bool | linear |
Is compression done on linear or log scale. More... | |
Soft clipper signal processing implementation.
softclipper_t::softclipper_t | ( | const softclipper_variables_t & | v, |
const mhaconfig_t & | tf | ||
) |
Constructor, copies information from parameters and initializes state.
v | Configuration variables of the softclipper |
tf | Signal dimensions |
mha_real_t softclipper_t::process | ( | mha_wave_t * | s | ) |
Process one block of audio signal.
[in,out] | s | Input signal which is modified in-place |
|
private |
Attack filter.
|
private |
Decay filter.
|
private |
Clipping ratio filter.
|
private |
Compression onset value.
|
private |
Maximum output amplitude of softclipper.
|
private |
Compression slope.
|
private |
Is compression done on linear or log scale.