ui->compressor_threshold_db_display->setText(buf);
connect(ui->locut_cutoff_knob, &QDial::valueChanged, this, &MainWindow::cutoff_knob_changed);
+ cutoff_knob_changed(ui->locut_cutoff_knob->value());
+
connect(ui->limiter_threshold_knob, &QDial::valueChanged, this, &MainWindow::limiter_threshold_knob_changed);
connect(ui->compressor_threshold_knob, &QDial::valueChanged, this, &MainWindow::compressor_threshold_knob_changed);
connect(ui->limiter_enabled, &QCheckBox::stateChanged, [this](int state){
}
}
- // Cut away everything under 150 Hz; we don't need it for voice,
- // and it will reduce headroom and confuse the compressor.
- // (In particular, any hums at 50 or 60 Hz should be dampened.)
+ // Cut away everything under 120 Hz (or whatever the cutoff is);
+ // we don't need it for voice, and it will reduce headroom
+ // and confuse the compressor. (In particular, any hums at 50 or 60 Hz
+ // should be dampened.)
locut.render(samples_out.data(), samples_out.size() / 2, locut_cutoff_hz * 2.0 * M_PI / OUTPUT_FREQUENCY, 0.5f);
// Apply a level compressor to get the general level right.
<number>60</number>
</property>
<property name="value">
- <number>29</number>
+ <number>26</number>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="locut_cutoff_display">
<property name="text">
- <string>150 Hz</string>
+ <string>120 Hz</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>