MCPcopy Create free account
hub / github.com/audacity/audacity / CompressorEditor

Method CompressorEditor

src/effects/CompressorEditor.cpp:58–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56} // namespace
57
58CompressorEditor::CompressorEditor(
59 wxWindow* parent, CompressorInstance& instance, bool isRealtime,
60 const EffectUIServices& services, EffectSettingsAccess& access,
61 CompressorSettings settings)
62 : DynamicRangeProcessorEditor { parent, instance, isRealtime, services,
63 access }
64 , mSettings { std::move(settings) }
65{
66 Initialize({ { mSettings.thresholdDb, compressorThresholdDbAttributes,
67 std::make_shared<ParameterWrapper>(thresholdDb),
68 ControllerCategory::CompressionCurve },
69 { mSettings.makeupGainDb, compressorMakupGainDbAttributes,
70 std::make_shared<ParameterWrapper>(makeupGainDb),
71 ControllerCategory::CompressionCurve },
72 { mSettings.kneeWidthDb, kneeWidthDbAttributes,
73 std::make_shared<ParameterWrapper>(kneeWidthDb),
74 ControllerCategory::CompressionCurve },
75 { mSettings.compressionRatio, compressionRatioAttributes,
76 std::make_shared<ParameterWrapper>(compressionRatio),
77 ControllerCategory::CompressionCurve },
78 { mSettings.lookaheadMs, lookaheadMsAttributes,
79 std::make_shared<ParameterWrapper>(lookaheadMs),
80 ControllerCategory::TimeSmoothing },
81 { mSettings.attackMs, attackMsAttributes,
82 std::make_shared<ParameterWrapper>(attackMs),
83 ControllerCategory::TimeSmoothing },
84 { mSettings.releaseMs, releaseMsAttributes,
85 std::make_shared<ParameterWrapper>(releaseMs),
86 ControllerCategory::TimeSmoothing } });
87}

Callers

nothing calls this directly

Calls 2

moveFunction · 0.85
InitializeFunction · 0.50

Tested by

no test coverage detected