14#ifndef __AUDACITY_EFFECT_CHANGEPITCH__
15#define __AUDACITY_EFFECT_CHANGEPITCH__
20#include <wx/weakref.h>
29class EffectChangePitch :
30 public ChangePitchBase,
43 void OnChoice_FromPitch(wxCommandEvent & evt);
44 void OnSpin_FromOctave(wxCommandEvent & evt);
45 void OnChoice_ToPitch(wxCommandEvent & evt);
46 void OnSpin_ToOctave(wxCommandEvent & evt);
48 void OnText_SemitonesChange(wxCommandEvent & evt);
50 void OnText_FromFrequency(wxCommandEvent & evt);
51 void OnText_ToFrequency(wxCommandEvent & evt);
53 void OnText_PercentChange(wxCommandEvent & evt);
54 void OnSlider_PercentChange(wxCommandEvent & evt);
57 void Update_Choice_FromPitch();
58 void Update_Spin_FromOctave();
59 void Update_Choice_ToPitch();
60 void Update_Spin_ToOctave();
62 void Update_Text_SemitonesChange();
64 void Update_Text_FromFrequency();
65 void Update_Text_ToFrequency();
67 void Update_Text_PercentChange();
68 void Update_Slider_PercentChange();
70 wxWeakRef<wxWindow> mUIParent{};
73 wxChoice* m_pChoice_FromPitch =
nullptr;
74 wxSpinCtrl* m_pSpin_FromOctave =
nullptr;
75 wxChoice* m_pChoice_ToPitch =
nullptr;
76 wxSpinCtrl* m_pSpin_ToOctave =
nullptr;
77 wxTextCtrl* m_pTextCtrl_SemitonesChange =
nullptr;
79 wxTextCtrl* m_pTextCtrl_FromFrequency =
nullptr;
80 wxTextCtrl* m_pTextCtrl_ToFrequency =
nullptr;
81 wxTextCtrl* m_pTextCtrl_PercentChange =
nullptr;
82 wxSlider* m_pSlider_PercentChange =
nullptr;
85 wxCheckBox* mUseSBSMSCheckBox =
nullptr;
Change Pitch effect provides raising or lowering the pitch without changing the tempo.
static Settings & settings()
Performs effect computation.
Hold values to send to effect output meters.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
virtual bool TransferDataToWindow(const EffectSettings &settings)
virtual std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs)
Add controls to effect panel; always succeeds.
virtual bool TransferDataFromWindow(EffectSettings &settings)
Externalized state of a plug-in.