Audacity 3.2.0
EqualizationParameters.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 EqualizationParameters.h
6
7 Mitch Golden
8 Vaughan Johnson (Preview)
9
10 Paul Licameli split from Equalization.h
11
12***********************************************************************/
13#ifndef __AUDACITY_EQUALIZATION_PARAMETERS__
14#define __AUDACITY_EQUALIZATION_PARAMETERS__
15
16#include "ShuttleAutomation.h"
17
18// Flags to specialise the UI
19const int kEqOptionGraphic = 1;
20const int kEqOptionCurve = (1 << 1) ;
21// The legacy version offers both Graphic and curve on the same UI.
23
24// Define to enable the old combined UI with both curves and sliders, and
25// management of a set of curves
26#undef LEGACY_EQ
27
35 };
37
39 void LoadDefaults(int options);
40 void SaveConfig(const EffectSettingsManager &manager) const;
41 bool IsLinear() const;
42
43 wxString mCurveName;
44 float mdBMin;
45 float mdBMax;
46 size_t mM;
50 bool mLin;
51
52// Not all of these are visited now
54 L"FilterLength", 8191, 21, 8191, 0 };
56 L"CurveName", L"unnamed", L"", L"", L""};
58 L"InterpolateLin", false, false, true, false };
60 L"InterpolationMethod", 0, 0, 0, 0, kInterpStrings, nInterpolations };
62 L"", true, false, true, false };
64 L"", true, false, true, false };
66 L"", -30.0f, -120.0, -10.0, 0 };
68 L"", 30.0f, 0.0, 60.0, 0 };
69};
70
71#endif
const int kEqLegacy
const int kEqOptionCurve
const int kEqOptionGraphic
static const AttachedProjectObjects::RegisteredFactory manager
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
EffectSettingsManager is an EffectDefinitionInterface that adds a factory function for EffectSettings...
Parameters of the Equalization effects that persist in configuration files.
void SaveConfig(const EffectSettingsManager &manager) const
EqualizationParameters(const EffectSettingsManager &manager)
static constexpr EffectParameter dBMax
static constexpr EffectParameter dBMin
static constexpr EnumParameter InterpMeth
static constexpr EffectParameter CurveName
static constexpr EffectParameter DrawGrid
static const EnumValueSymbol kInterpStrings[nInterpolations]
static constexpr EffectParameter FilterLength
static constexpr EffectParameter DrawMode
static constexpr EffectParameter InterpLin