17#ifndef __AUDACITY_EFFECT_CHANGETEMPO__
18#define __AUDACITY_EFFECT_CHANGETEMPO__
26#include <wx/weakref.h>
52 bool SupportsAutomation()
const override;
59 double CalcPreviewInputLength(
61 std::unique_ptr<EffectEditor> PopulateOrExchange(
71 void OnText_PercentChange(wxCommandEvent & evt);
72 void OnSlider_PercentChange(wxCommandEvent & evt);
73 void OnText_FromBPM(wxCommandEvent & evt);
74 void OnText_ToBPM(wxCommandEvent & evt);
75 void OnText_ToLength(wxCommandEvent & evt);
78 void Update_Text_PercentChange();
79 void Update_Slider_PercentChange();
80 void Update_Text_ToBPM();
81 void Update_Text_ToLength();
84 wxWeakRef<wxWindow> mUIParent{};
87 double m_PercentChange;
97 wxTextCtrl * m_pTextCtrl_PercentChange;
98 wxSlider * m_pSlider_PercentChange;
99 wxTextCtrl * m_pTextCtrl_FromBPM;
100 wxTextCtrl * m_pTextCtrl_ToBPM;
101 wxTextCtrl * m_pTextCtrl_FromLength;
102 wxTextCtrl * m_pTextCtrl_ToLength;
105 wxCheckBox * mUseSBSMSCheckBox;
109 DECLARE_EVENT_TABLE()
111static constexpr
EffectParameter Percentage{ &EffectChangeTempo::m_PercentChange,
112 L
"Percentage", 0.0, -95.0, 3000.0, 1 };
113static constexpr EffectParameter UseSBSMS{ &EffectChangeTempo::mUseSBSMS,
114 L
"SBSMS",
false,
false,
true, 1 };
static Settings & settings()
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
An EffectSoundTouch provides speeding up or slowing down tempo without changing pitch.
Performs effect computation.
Hold values to send to effect output meters.
Interface for manipulations of an Effect's settings.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Holds a msgid for the translation catalog; may also bind format arguments.
Externalized state of a plug-in.