Skip to content

Commit 4ad9ee5

Browse files
committed
Update style
1 parent 35c9f6f commit 4ad9ee5

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/domain/effects/effect_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
#include "early_reflections.hpp"
3737
#include "endless_reverb.hpp"
3838
#include "eq_8_band_parametric.hpp"
39-
#include "limiter.hpp"
4039
#include "gain.hpp"
40+
#include "limiter.hpp"
4141
#include "monitor.hpp"
4242
#include "multiband_compressor.hpp"
4343
#include "panner.hpp"

src/domain/effects/tube_stage.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ TubeStage::TubeStage()
7272
: m_oversampling { std::make_unique<Oversampling>() }
7373
{
7474
addParameter(Parameter { Constants::NahdXml::xmlKeyMode().toStdString(), 0.0f, 0, 1, 0, 1, Parameter::Type::Discrete });
75-
addParameter(Parameter { Constants::NahdXml::xmlKeyDriveDb().toStdString(), 0.1875f, 0, static_cast<int>(MaxDriveDb * 100), 900, 100, Parameter::Type::Continuous, { Constants::NahdXml::xmlKeyDrive().toStdString() },
76-
[](float legacyPosition) {
77-
return static_cast<float>(static_cast<double>(legacyPosition) * LegacyMaxDriveDb / MaxDriveDb);
78-
} });
75+
addParameter(Parameter { Constants::NahdXml::xmlKeyDriveDb().toStdString(), 0.1875f, 0, static_cast<int>(MaxDriveDb * 100), 900, 100, Parameter::Type::Continuous, { Constants::NahdXml::xmlKeyDrive().toStdString() }, [](float legacyPosition) {
76+
return static_cast<float>(static_cast<double>(legacyPosition) * LegacyMaxDriveDb / MaxDriveDb);
77+
} });
7978
addParameter(Parameter { Constants::NahdXml::xmlKeyBias().toStdString(), 0.5f, 0, 10000, 5000, 100, Parameter::Type::Continuous });
8079
addParameter(Parameter { Constants::NahdXml::xmlKeyTone().toStdString(), 0.5f, 0, 10000, 5000, 100, Parameter::Type::Continuous });
8180
addMixParameter(1.0f, MixLaw::Internal);

src/unit_tests/effects_test/effects_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,6 @@ void EffectsTest::test_clipperEffect_shouldClipSignal()
13241324
}
13251325
}
13261326

1327-
13281327
void EffectsTest::test_saturatorEffect_shouldShapeSignalPerMode()
13291328
{
13301329
Saturator effect;

0 commit comments

Comments
 (0)