Audacity 3.2.0
TimeScale.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 TimeScale.h
6
7 Clayton Otey
8
9**********************************************************************/
10
11#ifndef __AUDACITY_EFFECT_TIMESCALE__
12#define __AUDACITY_EFFECT_TIMESCALE__
13
14#if USE_SBSMS
15
17#include "TimeScaleBase.h"
18#include <wx/weakref.h>
19
20class wxSlider;
21class wxTextCtrl;
22class ShuttleGui;
23
25{
26public:
27 std::unique_ptr<EffectEditor> PopulateOrExchange(
28 ShuttleGui & S, EffectInstance &instance,
29 EffectSettingsAccess &access, const EffectOutputs *pOutputs) override;
30 bool TransferDataToWindow(const EffectSettings &settings) override;
32
33 DECLARE_EVENT_TABLE()
34private:
35
36 void OnText_RatePercentChangeStart(wxCommandEvent & evt);
37 void OnText_RatePercentChangeEnd(wxCommandEvent & evt);
38 void OnText_PitchPercentChangeStart(wxCommandEvent & evt);
39 void OnText_PitchPercentChangeEnd(wxCommandEvent & evt);
40 void OnText_PitchHalfStepsStart(wxCommandEvent & evt);
41 void OnText_PitchHalfStepsEnd(wxCommandEvent & evt);
42 void OnSlider_RatePercentChangeStart(wxCommandEvent & evt);
43 void OnSlider_RatePercentChangeEnd(wxCommandEvent & evt);
44 void OnCheckBox_PreAnalyze(wxCommandEvent & evt);
45
54
55 wxWeakRef<wxWindow> mUIParent{};
56
65};
66
67#endif // __AUDACITY_EFFECT_TIMESCALE
68
69#endif // USE_SBSMS
#define S(N)
Definition: ToChars.cpp:64
static Settings & settings()
Definition: TrackInfo.cpp:51
Performs effect computation.
Hold values to send to effect output meters.
wxTextCtrl * m_pTextCtrl_PitchHalfStepsEnd
Definition: TimeScale.h:62
void Update_Slider_RatePercentChangeEnd()
Definition: TimeScale.cpp:188
void OnSlider_RatePercentChangeStart(wxCommandEvent &evt)
Definition: TimeScale.cpp:235
wxSlider * m_pSlider_RatePercentChangeStart
Definition: TimeScale.h:59
void Update_Text_PitchHalfStepsEnd()
Definition: TimeScale.cpp:198
void Update_Text_PitchHalfStepsStart()
Definition: TimeScale.cpp:193
wxTextCtrl * m_pTextCtrl_RatePercentChangeStart
Definition: TimeScale.h:57
void OnText_PitchPercentChangeEnd(wxCommandEvent &evt)
Definition: TimeScale.cpp:285
wxTextCtrl * m_pTextCtrl_RatePercentChangeEnd
Definition: TimeScale.h:58
void OnText_PitchHalfStepsStart(wxCommandEvent &evt)
Definition: TimeScale.cpp:249
void OnText_PitchPercentChangeStart(wxCommandEvent &evt)
Definition: TimeScale.cpp:273
void Update_Slider_RatePercentChangeStart()
Definition: TimeScale.cpp:183
void OnSlider_RatePercentChangeEnd(wxCommandEvent &evt)
Definition: TimeScale.cpp:242
void OnText_PitchHalfStepsEnd(wxCommandEvent &evt)
Definition: TimeScale.cpp:261
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
Definition: TimeScale.cpp:43
void Update_Text_PitchPercentChangeStart()
Definition: TimeScale.cpp:203
wxSlider * m_pSlider_RatePercentChangeEnd
Definition: TimeScale.h:60
void Update_Text_RatePercentChangeEnd()
Definition: TimeScale.cpp:178
wxWeakRef< wxWindow > mUIParent
Definition: TimeScale.h:55
wxTextCtrl * m_pTextCtrl_PitchHalfStepsStart
Definition: TimeScale.h:61
void Update_Text_RatePercentChangeStart()
Definition: TimeScale.cpp:173
void OnText_RatePercentChangeStart(wxCommandEvent &evt)
Definition: TimeScale.cpp:213
void OnCheckBox_PreAnalyze(wxCommandEvent &evt)
bool TransferDataFromWindow(EffectSettings &settings) override
Definition: TimeScale.cpp:163
void Update_Text_PitchPercentChangeEnd()
Definition: TimeScale.cpp:208
bool TransferDataToWindow(const EffectSettings &settings) override
Definition: TimeScale.cpp:150
wxTextCtrl * m_pTextCtrl_PitchPercentChangeStart
Definition: TimeScale.h:63
void OnText_RatePercentChangeEnd(wxCommandEvent &evt)
Definition: TimeScale.cpp:224
wxTextCtrl * m_pTextCtrl_PitchPercentChangeEnd
Definition: TimeScale.h:64
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
An TimeScaleBase does high quality sliding time scaling/pitch shifting.
Definition: TimeScaleBase.h:18
Externalized state of a plug-in.