]> git.sesse.net Git - nageru/commitdiff
Reduce the default cutoff a bit; we have no instruments below, so better to give...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 15 Nov 2015 17:01:48 +0000 (18:01 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 15 Nov 2015 17:01:48 +0000 (18:01 +0100)
mainwindow.cpp
mixer.cpp
ui_mainwindow.ui

index 34db733bababc8b0e4f63b1233432fe2aab377e6..8a91a3f630dc031ac8414a07fda84af2feb5d768 100644 (file)
@@ -99,6 +99,8 @@ void MainWindow::mixer_created(Mixer *mixer)
        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){
index 239575f6dc82a1c969597474d425b75f47a8b638..72ae215f54cb993967de0e8a9ea8eb2bb3f0d3e7 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -572,9 +572,10 @@ void Mixer::process_audio_one_frame(int64_t frame_pts_int)
                }
        }
 
-       // 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.
index 858771ee98f166ab3bc121bab17260b771379a6b..db3a3684d7abdd7196fd00b22d5c28dedece8e09 100644 (file)
            <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>