The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
softclipper_t Class Reference

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...
 

Detailed Description

Soft clipper signal processing implementation.

Constructor & Destructor Documentation

◆ softclipper_t()

softclipper_t::softclipper_t ( const softclipper_variables_t v,
const mhaconfig_t tf 
)

Constructor, copies information from parameters and initializes state.

Parameters
vConfiguration variables of the softclipper
tfSignal dimensions

Member Function Documentation

◆ process()

mha_real_t softclipper_t::process ( mha_wave_t s)

Process one block of audio signal.

Parameters
[in,out]sInput signal which is modified in-place

Member Data Documentation

◆ attack

MHAFilter::o1flt_lowpass_t softclipper_t::attack
private

Attack filter.

◆ decay

MHAFilter::o1flt_maxtrack_t softclipper_t::decay
private

Decay filter.

◆ clipmeter

MHAFilter::o1flt_lowpass_t softclipper_t::clipmeter
private

Clipping ratio filter.

◆ threshold

mha_real_t softclipper_t::threshold
private

Compression onset value.

◆ hardlimit

mha_real_t softclipper_t::hardlimit
private

Maximum output amplitude of softclipper.

◆ slope

mha_real_t softclipper_t::slope
private

Compression slope.

◆ linear

bool softclipper_t::linear
private

Is compression done on linear or log scale.


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