Audacity 3.2.0
TruncSilence.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 TruncSilence.h
6
7 Lynn Allan (from DM's Normalize)
8 //ToDo ... put BlendFrames in Effects, Project, or other class
9 //ToDo ... Use ZeroCrossing logic to improve blend
10 //ToDo ... BlendFrames on "fade-out"
11 //ToDo ... BlendFrameCount is a user-selectable parameter
12 //ToDo ... Detect transient signals that are too short to interrupt the TruncatableSilence
13 Philip Van Baren (more options and boundary fixes)
14
15**********************************************************************/
16
17#ifndef __AUDACITY_EFFECT_TRUNC_SILENCE__
18#define __AUDACITY_EFFECT_TRUNC_SILENCE__
19
20#include "TruncSilenceBase.h"
22#include <wx/weakref.h>
23
24class ShuttleGui;
25class wxChoice;
26class wxTextCtrl;
27class wxCheckBox;
28
29class EffectTruncSilence final :
30 public TruncSilenceBase,
32{
33public:
34 std::unique_ptr<EffectEditor> PopulateOrExchange(
36 const EffectOutputs* pOutputs) override;
37 bool TransferDataToWindow(const EffectSettings& settings) override;
39
40 DECLARE_EVENT_TABLE()
41
42 void OnControlChange(wxCommandEvent & evt);
43 void UpdateUI();
44
45private:
46 wxWeakRef<wxWindow> mUIParent {};
47
48 wxTextCtrl* mThresholdText;
49 wxChoice* mActionChoice;
53 wxCheckBox* mIndependent;
54};
55
56#endif
#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.
wxChoice * mActionChoice
Definition: TruncSilence.h:49
bool TransferDataToWindow(const EffectSettings &settings) override
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
wxWeakRef< wxWindow > mUIParent
Definition: TruncSilence.h:46
wxTextCtrl * mThresholdText
Definition: TruncSilence.h:48
void OnControlChange(wxCommandEvent &evt)
wxCheckBox * mIndependent
Definition: TruncSilence.h:53
bool TransferDataFromWindow(EffectSettings &settings) override
wxTextCtrl * mTruncLongestAllowedSilenceT
Definition: TruncSilence.h:51
wxTextCtrl * mInitialAllowedSilenceT
Definition: TruncSilence.h:50
wxTextCtrl * mSilenceCompressPercentT
Definition: TruncSilence.h:52
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Truncate Silence automatically reduces the length of passages where the volume is below a set thresho...
Externalized state of a plug-in.