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

Class which computes smoothed input levels on individual bands, using an attack and release filter, which are a first order low pass filter and a maximum tracker filter, respectively. More...

Inheritance diagram for dc_simple::level_smoother_t:
Inheritance graph

Public Member Functions

 level_smoother_t (const dc_vars_t &vars, mha_real_t filter_rate, mhaconfig_t buscfg)
 
mha_wave_tprocess (mha_spec_t *s)
 Process callback. More...
 
mha_wave_tprocess (mha_wave_t *s)
 Process callback. More...
 

Private Attributes

MHAFilter::o1flt_lowpass_t attack
 first order low pass attack filter More...
 
MHAFilter::o1flt_maxtrack_t decay
 maximum tracker decay filter More...
 
unsigned int nbands
 Total number of frequency bands of this compressor. More...
 
unsigned int fftlen
 
MHASignal::waveform_t level_wave
 
MHASignal::waveform_t level_spec
 

Additional Inherited Members

- Private Member Functions inherited from dc_simple::dc_vars_validator_t
 dc_vars_validator_t (const dc_vars_t &v, unsigned int s)
 Checks that all vectors in v have size s or size 1. More...
 

Detailed Description

Class which computes smoothed input levels on individual bands, using an attack and release filter, which are a first order low pass filter and a maximum tracker filter, respectively.

Constructor & Destructor Documentation

◆ level_smoother_t()

dc_simple::level_smoother_t::level_smoother_t ( const dc_vars_t vars,
mha_real_t  filter_rate,
mhaconfig_t  buscfg 
)

Member Function Documentation

◆ process() [1/2]

mha_wave_t * dc_simple::level_smoother_t::process ( mha_spec_t s)

Process callback.

Computes smoothed levels from the input mha type spectrum by applying a lowpass and maximum tracker filter

Returns
smoothed input levels in dB SPL
Parameters
sinput signal

◆ process() [2/2]

mha_wave_t * dc_simple::level_smoother_t::process ( mha_wave_t s)

Process callback.

Computes smoothed levels from the input mha type waveform over individual bands by applying a lowpass and maximum tracker filter

Returns
smoothed input levels in dB SPL
Parameters
sinput/output signal

Member Data Documentation

◆ attack

MHAFilter::o1flt_lowpass_t dc_simple::level_smoother_t::attack
private

first order low pass attack filter

◆ decay

MHAFilter::o1flt_maxtrack_t dc_simple::level_smoother_t::decay
private

maximum tracker decay filter

◆ nbands

unsigned int dc_simple::level_smoother_t::nbands
private

Total number of frequency bands of this compressor.

◆ fftlen

unsigned int dc_simple::level_smoother_t::fftlen
private

◆ level_wave

MHASignal::waveform_t dc_simple::level_smoother_t::level_wave
private

◆ level_spec

MHASignal::waveform_t dc_simple::level_smoother_t::level_spec
private

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