18#include "../widgets/valnum.h"
47 mUIParent =
S.GetParent();
51 S.StartMultiColumn(2, wxALIGN_CENTER);
54 S.StartStatic(
XO(
"Initial Tempo Change (%)"));
56 S.StartMultiColumn(1, wxCENTER);
59 .Validator<FloatingPointValidator<double>>(
60 3, &m_RatePercentChangeStart,
61 NumValidatorStyle::NO_TRAILING_ZEROES,
62 RatePercentStart.min, RatePercentStart.max )
63 .AddTextBox( {}, L
"", 12);
66 S.StartHorizontalLay(wxEXPAND, 0);
69 .Style(wxSL_HORIZONTAL)
70 .AddSlider( {}, RatePercentStart.def, RatePercentStart.max, RatePercentStart.min);
76 S.StartStatic(
XO(
"Final Tempo Change (%)"));
78 S.StartMultiColumn(1, wxCENTER);
81 .Validator<FloatingPointValidator<double>>(
82 3, &m_RatePercentChangeEnd,
83 NumValidatorStyle::NO_TRAILING_ZEROES,
84 RatePercentEnd.min, RatePercentEnd.max )
85 .AddTextBox( {}, L
"", 12);
88 S.StartHorizontalLay(wxEXPAND, 0);
91 .Style(wxSL_HORIZONTAL)
92 .AddSlider( {}, RatePercentEnd.def, RatePercentEnd.max, RatePercentEnd.min);
99 S.StartStatic(
XO(
"Initial Pitch Shift"));
101 S.StartMultiColumn(2, wxCENTER);
104 .Validator<FloatingPointValidator<double>>(
105 3, &m_PitchHalfStepsStart,
106 NumValidatorStyle::NO_TRAILING_ZEROES,
107 HalfStepsStart.min, HalfStepsStart.max )
108 .AddTextBox(
XXO(
"(&semitones) [-12 to 12]:"), L
"", 12);
112 .Validator<FloatingPointValidator<double>>(
113 3, &m_PitchPercentChangeStart,
114 NumValidatorStyle::NO_TRAILING_ZEROES,
115 PitchPercentStart.min, PitchPercentStart.max )
116 .AddTextBox(
XXO(
"(%) [-50 to 100]:"), L
"", 12);
123 S.StartStatic(
XO(
"Final Pitch Shift"));
125 S.StartMultiColumn(2, wxCENTER);
128 .Validator<FloatingPointValidator<double>>(
129 3, &m_PitchHalfStepsEnd,
130 NumValidatorStyle::NO_TRAILING_ZEROES,
131 HalfStepsEnd.min, HalfStepsEnd.max )
132 .AddTextBox(
XXO(
"(s&emitones) [-12 to 12]:"), L
"", 12);
135 .Validator<FloatingPointValidator<double>>(
136 3, &m_PitchPercentChangeEnd,
137 NumValidatorStyle::NO_TRAILING_ZEROES,
138 PitchPercentStart.min, PitchPercentStart.max)
139 .AddTextBox(
XXO(
"(%) [-50 to 100]:"), L
"", 12);
XXO("&Cut/Copy/Paste Toolbar")
@ ID_RatePercentChangeEnd
@ ID_RatePercentChangeStart
@ ID_PitchPercentChangeEnd
@ ID_PitchPercentChangeStart
static bool EnableApply(wxWindow *parent, bool enable=true)
Enable or disable the Apply button of the dialog that contains parent.
Performs effect computation.
Hold values to send to effect output meters.
wxTextCtrl * m_pTextCtrl_PitchHalfStepsEnd
void Update_Slider_RatePercentChangeEnd()
void OnSlider_RatePercentChangeStart(wxCommandEvent &evt)
wxSlider * m_pSlider_RatePercentChangeStart
void Update_Text_PitchHalfStepsEnd()
void Update_Text_PitchHalfStepsStart()
wxTextCtrl * m_pTextCtrl_RatePercentChangeStart
void OnText_PitchPercentChangeEnd(wxCommandEvent &evt)
wxTextCtrl * m_pTextCtrl_RatePercentChangeEnd
void OnText_PitchHalfStepsStart(wxCommandEvent &evt)
void OnText_PitchPercentChangeStart(wxCommandEvent &evt)
void Update_Slider_RatePercentChangeStart()
void OnSlider_RatePercentChangeEnd(wxCommandEvent &evt)
void OnText_PitchHalfStepsEnd(wxCommandEvent &evt)
void Update_Text_PitchPercentChangeStart()
wxSlider * m_pSlider_RatePercentChangeEnd
void Update_Text_RatePercentChangeEnd()
wxWeakRef< wxWindow > mUIParent
wxTextCtrl * m_pTextCtrl_PitchHalfStepsStart
void Update_Text_RatePercentChangeStart()
void OnText_RatePercentChangeStart(wxCommandEvent &evt)
bool TransferDataFromWindow(EffectSettings &settings) override
void Update_Text_PitchPercentChangeEnd()
bool TransferDataToWindow(const EffectSettings &settings) override
wxTextCtrl * m_pTextCtrl_PitchPercentChangeStart
void OnText_RatePercentChangeEnd(wxCommandEvent &evt)
wxTextCtrl * m_pTextCtrl_PitchPercentChangeEnd
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
double m_PitchHalfStepsStart
double m_RatePercentChangeStart
static double HalfStepsToPercentChange(double halfSteps)
double m_PitchPercentChangeStart
double m_RatePercentChangeEnd
double m_PitchPercentChangeEnd
double m_PitchHalfStepsEnd
static double PercentChangeToHalfSteps(double percentChange)
BuiltinEffectsModule::Registration< EffectTimeScale > reg
Externalized state of a plug-in.