|
25 | 25 | #include "configsectionsound.h"
|
26 | 26 | #include "ui_configsectionsound.h"
|
27 | 27 | #include "contextmanager.h"
|
| 28 | +#include "modulatordata.h" |
28 | 29 |
|
29 | 30 | ConfigSectionSound::ConfigSectionSound(QWidget *parent) :
|
30 | 31 | QWidget(parent),
|
@@ -76,6 +77,12 @@ void ConfigSectionSound::initialize()
|
76 | 77 | ui->dialChoFrequence->blockSignals(true);
|
77 | 78 | ui->dialChoFrequence->setValue(ContextManager::configuration()->getValue(ConfManager::SECTION_SOUND_ENGINE, "cho_frequency", 0).toInt());
|
78 | 79 | ui->dialChoFrequence->blockSignals(false);
|
| 80 | + |
| 81 | + // Other |
| 82 | + ui->comboVelToFilter->blockSignals(true); |
| 83 | + ui->comboVelToFilter->setCurrentIndex(ContextManager::configuration()->getValue(ConfManager::SECTION_SOUND_ENGINE, "modulator_vel_to_filter", 1).toInt()); |
| 84 | + ModulatorData::MODULATOR_VEL_TO_FILTER_TYPE = ui->comboVelToFilter->currentIndex(); |
| 85 | + ui->comboVelToFilter->blockSignals(false); |
79 | 86 | }
|
80 | 87 |
|
81 | 88 | void ConfigSectionSound::on_dialRevNiveau_valueChanged(int value)
|
@@ -118,3 +125,9 @@ void ConfigSectionSound::on_sliderGain_valueChanged(int value)
|
118 | 125 | ContextManager::configuration()->setValue(ConfManager::SECTION_SOUND_ENGINE, "gain", value);
|
119 | 126 | ui->labelGain->setText(QString::number(value));
|
120 | 127 | }
|
| 128 | + |
| 129 | +void ConfigSectionSound::on_comboVelToFilter_currentIndexChanged(int index) |
| 130 | +{ |
| 131 | + ContextManager::configuration()->setValue(ConfManager::SECTION_SOUND_ENGINE, "modulator_vel_to_filter", index); |
| 132 | + ModulatorData::MODULATOR_VEL_TO_FILTER_TYPE = index; |
| 133 | +} |
0 commit comments