Audacity 3.2.0
Equalization.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 Equalization.cpp
6
7 Mitch Golden
8 Vaughan Johnson (Preview)
9 Martyn Shaw (FIR filters, response curve, graphic EQ)
10
11*******************************************************************//****************************************************************//*******************************************************************/
35#include "Equalization.h"
36#include "EqualizationUI.h"
37#include "EffectEditor.h"
38#include "LoadEffects.h"
39#include "ShuttleGui.h"
40
41#ifdef LEGACY_EQ
43#endif
44
45// "Filter Curve EQ" in the user-facing string, but preserve the old
46// internal string
48{ wxT("Filter Curve"), XO("Filter Curve EQ") };
49
51
53{ wxT("Graphic EQ"), XO("Graphic EQ") };
54
56
58{
64}
65
67 const EffectPlugin &, EffectSettings &settings) const
68{
69 // Stateful effect still cheats const_cast!
70 return const_cast<EffectEqualization&>(*this).mUI.ValidateUI(settings);
71}
72
73std::unique_ptr<EffectEditor> EffectEqualization::PopulateOrExchange(
74 ShuttleGui & S, EffectInstance &instance, EffectSettingsAccess &access,
75 const EffectOutputs *pOutputs)
76{
77 mUIParent = S.GetParent();
78 return mUI.PopulateOrExchange(S, instance, access, pOutputs);
79}
80
81//
82// Populate the window with relevant variables
83//
85{
87}
wxT("CloseDown"))
const int kEqOptionCurve
const int kEqOptionGraphic
XO("Cut/Copy/Paste")
#define S(N)
Definition: ToChars.cpp:64
static Settings & settings()
Definition: TrackInfo.cpp:51
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
static const ComponentInterfaceSymbol Symbol
Definition: Equalization.h:44
static const ComponentInterfaceSymbol Symbol
Definition: Equalization.h:52
An Effect that modifies volume in different frequency bands.
Definition: Equalization.h:24
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
bool TransferDataToWindow(const EffectSettings &settings) override
bool ValidateUI(const EffectPlugin &plugin, EffectSettings &) const override
EqualizationUI mUI
Definition: Equalization.h:38
wxWeakRef< wxWindow > mUIParent
Definition: Equalization.h:37
ComponentInterfaceSymbol GetSymbol() const override
Performs effect computation.
Hold values to send to effect output meters.
Factory of instances of an effect.
Definition: EffectPlugin.h:36
static const ComponentInterfaceSymbol Symbol
bool ValidateUI(EffectSettings &settings)
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs)
bool TransferDataToWindow(const EffectSettings &settings)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
BuiltinCommandsModule::Registration< CompareAudioCommand > reg
BuiltinEffectsModule::Registration< EffectEqualizationCurve > reg2
BuiltinEffectsModule::Registration< EffectEqualizationGraphic > reg3
Externalized state of a plug-in.