Runtime configuration class for generating an electrodogram from an audio signal, using a stimulation strategy similar to a typical ACE (advanced combination encoder, n-of-m) coding strategy with 22 channels.
More...
Runtime configuration class for generating an electrodogram from an audio signal, using a stimulation strategy similar to a typical ACE (advanced combination encoder, n-of-m) coding strategy with 22 channels.
◆ Ci_simulation_ace_cfg()
Ci_simulation_ace_cfg::Ci_simulation_ace_cfg |
( |
unsigned int |
n_electrodes, |
|
|
mha_real_t |
compression_coefficient, |
|
|
mha_real_t |
base_level, |
|
|
mha_real_t |
saturation_level, |
|
|
std::vector< mha_real_t > |
threshold_level, |
|
|
std::vector< mha_real_t > |
comfort_level, |
|
|
std::vector< int > |
disabled_electrodes, |
|
|
unsigned int |
stimulation_order, |
|
|
std::default_random_engine |
random_number_generator |
|
) |
| |
Constructor of the runtime configuration class.
- Parameters
-
n_electrodes | Number of active electrodes (cannot be changed at runtime) |
compression_coefficient | Compression coefficient of the loudness growth function |
base_level | Base level of the input (acoustic) dynamic range / Pa |
saturation_level | Saturation level of the input (acoustic) dynamic range / Pa |
threshold_level | Vector containing the threshold level of the output (electric) dynamic range for each electrode / CU |
comfort_level | Vector containing the comfort level of the output (electric) dynamic range for each electrode / CU |
disabled_electrodes | Vector containing the indices of any disabled electrodes |
stimulation_order | Electrode stimulation order |
random_number_generator | Random number generator for randomization of stimulation order |
◆ process()
Process function of the runtime configuration class (main signal processing function).
It leaves the input signal fragment unchanged; its purpose is to compute the AC variable electrodogram_ac for further processing in the plugin chain
- Parameters
-
signal | Pointer to the current input signal fragment |
electrodogram_ac | AC variable containing a pointer to the electrodogram |
- Returns
- Pointer to the (unchanged) output signal fragment
◆ n_electrodes_cfg
unsigned int Ci_simulation_ace_cfg::n_electrodes_cfg |
|
private |
Number of active electrodes (cannot be changed at runtime)
◆ compression_coefficient_cfg
mha_real_t Ci_simulation_ace_cfg::compression_coefficient_cfg |
|
private |
Compression coefficient of the loudness growth function.
◆ base_level_cfg
Base level of the input (acoustic) dynamic range / Pa.
◆ saturation_level_cfg
mha_real_t Ci_simulation_ace_cfg::saturation_level_cfg |
|
private |
Saturation level of the input (acoustic) dynamic range / Pa.
◆ threshold_level_cfg
std::vector<mha_real_t> Ci_simulation_ace_cfg::threshold_level_cfg |
|
private |
Vector containing the threshold level of the output (electric) dynamic range for each electrode / CU.
◆ comfort_level_cfg
std::vector<mha_real_t> Ci_simulation_ace_cfg::comfort_level_cfg |
|
private |
Vector containing the comfort level of the output (electric) dynamic range for each electrode / CU.
◆ disabled_electrodes_cfg
std::vector<int> Ci_simulation_ace_cfg::disabled_electrodes_cfg |
|
private |
Vector containing the indices of any disabled electrodes.
◆ stimulation_order_cfg
unsigned int Ci_simulation_ace_cfg::stimulation_order_cfg |
|
private |
Electrode stimulation order.
◆ random_number_generator_cfg
std::default_random_engine Ci_simulation_ace_cfg::random_number_generator_cfg |
|
private |
Random number generator for randomization of stimulation order.
The documentation for this class was generated from the following files: