Audacity  3.0.3
Public Member Functions | Public Attributes | Private Member Functions | List of all members
NoiseRemovalDialog Class Referencefinal

Dialog used with EffectNoiseRemoval. More...

#include <NoiseRemoval.h>

Inheritance diagram for NoiseRemovalDialog:
[legend]
Collaboration diagram for NoiseRemovalDialog:
[legend]

Public Member Functions

 NoiseRemovalDialog (EffectNoiseRemoval *effect, wxWindow *parent)
 
wxSizer * MakeNoiseRemovalDialog (bool call_fit=true, bool set_sizer=true)
 
void PopulateOrExchange (ShuttleGui &S) override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
- Public Member Functions inherited from EffectDialog
 EffectDialog (wxWindow *parent, const TranslatableString &title, int type=0, int flags=wxDEFAULT_DIALOG_STYLE, int additionalButtons=0)
 
void Init ()
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
bool Validate () override
 
virtual void OnOk (wxCommandEvent &evt)
 
- Public Member Functions inherited from wxDialogWrapper
 wxDialogWrapper ()
 
 wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
bool Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
void SetTitle (const TranslatableString &title)
 
void SetLabel (const TranslatableString &title)
 
void SetName (const TranslatableString &title)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxDialog >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Public Attributes

EffectNoiseRemovalm_pEffect
 
wxButton * m_pButton_GetProfile
 
wxButton * m_pButton_Preview
 
wxButton * m_pButton_RemoveNoise
 
wxRadioButton * mKeepSignal
 
wxRadioButton * mKeepNoise
 
wxSlider * mSensitivityS
 
wxSlider * mGainS
 
wxSlider * mFreqS
 
wxSlider * mTimeS
 
wxTextCtrl * mSensitivityT
 
wxTextCtrl * mGainT
 
wxTextCtrl * mFreqT
 
wxTextCtrl * mTimeT
 
double mSensitivity
 
double mGain
 
double mFreq
 
double mTime
 
bool mbLeaveNoise
 

Private Member Functions

void OnGetProfile (wxCommandEvent &event)
 
void OnKeepNoise (wxCommandEvent &event)
 
void OnPreview (wxCommandEvent &event) override
 
void OnRemoveNoise (wxCommandEvent &event)
 
void OnCancel (wxCommandEvent &event)
 
void OnSensitivityText (wxCommandEvent &event)
 
void OnGainText (wxCommandEvent &event)
 
void OnFreqText (wxCommandEvent &event)
 
void OnTimeText (wxCommandEvent &event)
 
void OnSensitivitySlider (wxCommandEvent &event)
 
void OnGainSlider (wxCommandEvent &event)
 
void OnFreqSlider (wxCommandEvent &event)
 
void OnTimeSlider (wxCommandEvent &event)
 

Detailed Description

Dialog used with EffectNoiseRemoval.

Definition at line 133 of file NoiseRemoval.h.

Constructor & Destructor Documentation

◆ NoiseRemovalDialog()

NoiseRemovalDialog::NoiseRemovalDialog ( EffectNoiseRemoval effect,
wxWindow *  parent 
)

Definition at line 637 of file NoiseRemoval.cpp.

639  : EffectDialog( parent, XO("Noise Removal"), EffectTypeProcess)
640 {
641  m_pEffect = effect;
642 
643  // NULL out the control members until the controls are created.
644  m_pButton_GetProfile = NULL;
645  m_pButton_Preview = NULL;
646  m_pButton_RemoveNoise = NULL;
647 
648  Init();
649 
651  (wxButton *)wxWindow::FindWindowById(ID_EFFECT_PREVIEW, this);
653  (wxButton *)wxWindow::FindWindowById(wxID_OK, this);
654 }

References ID_EFFECT_PREVIEW.

Member Function Documentation

◆ MakeNoiseRemovalDialog()

wxSizer* NoiseRemovalDialog::MakeNoiseRemovalDialog ( bool  call_fit = true,
bool  set_sizer = true 
)

◆ OnCancel()

void NoiseRemovalDialog::OnCancel ( wxCommandEvent &  event)
private

Definition at line 703 of file NoiseRemoval.cpp.

704 {
705  EndModal(0);
706 }

◆ OnFreqSlider()

void NoiseRemovalDialog::OnFreqSlider ( wxCommandEvent &  event)
private

Definition at line 833 of file NoiseRemoval.cpp.

834 {
835  mFreq = mFreqS->GetValue() * 10;
836  mFreqT->SetValue(wxString::Format(wxT("%d"), (int)mFreq));
837 }

References mFreq, mFreqS, and mFreqT.

◆ OnFreqText()

void NoiseRemovalDialog::OnFreqText ( wxCommandEvent &  event)
private

Definition at line 809 of file NoiseRemoval.cpp.

810 {
811  mFreqT->GetValue().ToDouble(&mFreq);
812  mFreqS->SetValue(TrapLong(mFreq / 10, FREQ_MIN, FREQ_MAX));
813 }

References FREQ_MAX, FREQ_MIN, mFreq, mFreqS, mFreqT, and TrapLong().

Here is the call graph for this function:

◆ OnGainSlider()

void NoiseRemovalDialog::OnGainSlider ( wxCommandEvent &  event)
private

Definition at line 827 of file NoiseRemoval.cpp.

828 {
829  mGain = mGainS->GetValue();
830  mGainT->SetValue(wxString::Format(wxT("%d"), (int)mGain));
831 }

References mGain, mGainS, and mGainT.

◆ OnGainText()

void NoiseRemovalDialog::OnGainText ( wxCommandEvent &  event)
private

Definition at line 803 of file NoiseRemoval.cpp.

804 {
805  mGainT->GetValue().ToDouble(&mGain);
806  mGainS->SetValue(TrapLong(mGain, GAIN_MIN, GAIN_MAX));
807 }

References GAIN_MAX, GAIN_MIN, mGain, mGainS, mGainT, and TrapLong().

Here is the call graph for this function:

◆ OnGetProfile()

void NoiseRemovalDialog::OnGetProfile ( wxCommandEvent &  event)
private

Definition at line 656 of file NoiseRemoval.cpp.

657 {
658  EndModal(1);
659 }

◆ OnKeepNoise()

void NoiseRemovalDialog::OnKeepNoise ( wxCommandEvent &  event)
private

Definition at line 661 of file NoiseRemoval.cpp.

662 {
663  mbLeaveNoise = mKeepNoise->GetValue();
664 }

References mbLeaveNoise, and mKeepNoise.

◆ OnPreview()

void NoiseRemovalDialog::OnPreview ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from EffectDialog.

Definition at line 666 of file NoiseRemoval.cpp.

667 {
668  // Save & restore parameters around Preview, because we didn't do OK.
669  bool oldDoProfile = m_pEffect->mDoProfile;
670  bool oldLeaveNoise = m_pEffect->mbLeaveNoise;
671  double oldSensitivity = m_pEffect->mSensitivity;
672  double oldGain = m_pEffect->mNoiseGain;
673  double oldFreq = m_pEffect->mFreqSmoothingHz;
674  double oldTime = m_pEffect->mAttackDecayTime;
675 
677 
678  m_pEffect->mDoProfile = false;
684 
685  auto cleanup = finally( [&] {
686  m_pEffect->mSensitivity = oldSensitivity;
687  m_pEffect->mNoiseGain = oldGain;
688  m_pEffect->mFreqSmoothingHz = oldFreq;
689  m_pEffect->mAttackDecayTime = oldTime;
690  m_pEffect->mbLeaveNoise = oldLeaveNoise;
691  m_pEffect->mDoProfile = oldDoProfile;
692  } );
693 
694  m_pEffect->Preview( false );
695 }

References m_pEffect, EffectNoiseRemoval::mAttackDecayTime, EffectNoiseRemoval::mbLeaveNoise, mbLeaveNoise, EffectNoiseRemoval::mDoProfile, mFreq, EffectNoiseRemoval::mFreqSmoothingHz, mGain, EffectNoiseRemoval::mNoiseGain, EffectNoiseRemoval::mSensitivity, mSensitivity, mTime, Effect::Preview(), and TransferDataFromWindow().

Here is the call graph for this function:

◆ OnRemoveNoise()

void NoiseRemovalDialog::OnRemoveNoise ( wxCommandEvent &  event)
private

Definition at line 697 of file NoiseRemoval.cpp.

698 {
699  mbLeaveNoise = mKeepNoise->GetValue();
700  EndModal(2);
701 }

References mbLeaveNoise, and mKeepNoise.

◆ OnSensitivitySlider()

void NoiseRemovalDialog::OnSensitivitySlider ( wxCommandEvent &  event)
private

Definition at line 821 of file NoiseRemoval.cpp.

822 {
823  mSensitivity = mSensitivityS->GetValue()/100.0 - 20.0;
824  mSensitivityT->SetValue(wxString::Format(wxT("%.2f"), mSensitivity));
825 }

References mSensitivity, mSensitivityS, and mSensitivityT.

◆ OnSensitivityText()

void NoiseRemovalDialog::OnSensitivityText ( wxCommandEvent &  event)
private

Definition at line 797 of file NoiseRemoval.cpp.

798 {
799  mSensitivityT->GetValue().ToDouble(&mSensitivity);
801 }

References mSensitivity, mSensitivityS, mSensitivityT, SENSITIVITY_MAX, SENSITIVITY_MIN, and TrapLong().

Here is the call graph for this function:

◆ OnTimeSlider()

void NoiseRemovalDialog::OnTimeSlider ( wxCommandEvent &  event)
private

Definition at line 839 of file NoiseRemoval.cpp.

840 {
841  mTime = mTimeS->GetValue() / (TIME_MAX*1.0);
842  mTimeT->SetValue(wxString::Format(wxT("%.2f"), mTime));
843 }

References mTime, mTimeS, mTimeT, and TIME_MAX.

◆ OnTimeText()

void NoiseRemovalDialog::OnTimeText ( wxCommandEvent &  event)
private

Definition at line 815 of file NoiseRemoval.cpp.

816 {
817  mTimeT->GetValue().ToDouble(&mTime);
818  mTimeS->SetValue(TrapLong(mTime * TIME_MAX + 0.5, TIME_MIN, TIME_MAX));
819 }

References mTime, mTimeS, mTimeT, TIME_MAX, TIME_MIN, and TrapLong().

Here is the call graph for this function:

◆ PopulateOrExchange()

void NoiseRemovalDialog::PopulateOrExchange ( ShuttleGui S)
overridevirtual

This is a virtual function which will be overridden to provide the actual parameters that we want for each kind of dialog.

Reimplemented from EffectDialog.

Definition at line 708 of file NoiseRemoval.cpp.

709 {
710  S.StartStatic(XO("Step 1"));
711  {
713 "Select a few seconds of just noise so Audacity knows what to filter out,\nthen click Get Noise Profile:"));
714  m_pButton_GetProfile = S.Id(ID_BUTTON_GETPROFILE).AddButton(XXO("&Get Noise Profile"));
715  }
716  S.EndStatic();
717 
718  S.StartStatic(XO("Step 2"));
719  {
721 "Select all of the audio you want filtered, choose how much noise you want\nfiltered out, and then click 'OK' to remove noise.\n"));
722 
723  S.StartMultiColumn(3, wxEXPAND);
724  S.SetStretchyCol(2);
725  {
726  mGainT = S.Id(ID_GAIN_TEXT)
727  .Validator<wxTextValidator>(wxFILTER_NUMERIC)
728  .AddTextBox(XXO("Noise re&duction (dB):"), wxT(""), 0);
729 
731  .Name(XO("Noise reduction"))
732  .Style(wxSL_HORIZONTAL)
733  .MinSize( { 150, -1 } )
734  .AddSlider( {}, 0, GAIN_MAX, GAIN_MIN);
735 
737  .Validator<wxTextValidator>(wxFILTER_NUMERIC)
738  .AddTextBox(XXO("&Sensitivity (dB):"), wxT(""), 0);
740  .Name(XO("Sensitivity"))
741  .Style(wxSL_HORIZONTAL)
742  .MinSize( { 150, -1 } )
743  .AddSlider( {}, 0, SENSITIVITY_MAX, SENSITIVITY_MIN);
744 
745  mFreqT = S.Id(ID_FREQ_TEXT)
746  .Validator<wxTextValidator>(wxFILTER_NUMERIC)
747  .AddTextBox(XXO("Fr&equency smoothing (Hz):"), wxT(""), 0);
749  .Name(XO("Frequency smoothing"))
750  .Style(wxSL_HORIZONTAL)
751  .MinSize( { 150, -1 } )
752  .AddSlider( {}, 0, FREQ_MAX, FREQ_MIN);
753 
754  mTimeT = S.Id(ID_TIME_TEXT)
755  .Validator<wxTextValidator>(wxFILTER_NUMERIC)
756  .AddTextBox(XXO("Attac&k/decay time (secs):"), wxT(""), 0);
758  .Name(XO("Attack/decay time"))
759  .Style(wxSL_HORIZONTAL)
760  .MinSize( { 150, -1 } )
761  .AddSlider( {}, 0, TIME_MAX, TIME_MIN);
762 
763  S.AddPrompt(XXO("Noise:"));
765  .AddRadioButton(XXO("Re&move"));
767  .AddRadioButtonToGroup(XXO("&Isolate"));
768  }
769  S.EndMultiColumn();
770  }
771  S.EndStatic();
772 }

References ShuttleGuiBase::AddButton(), ShuttleGuiBase::AddPrompt(), ShuttleGuiBase::AddRadioButton(), ShuttleGuiBase::AddRadioButtonToGroup(), ShuttleGuiBase::AddVariableText(), ShuttleGuiBase::EndMultiColumn(), ShuttleGuiBase::EndStatic(), FREQ_MAX, FREQ_MIN, GAIN_MAX, GAIN_MIN, ShuttleGui::Id(), ID_BUTTON_GETPROFILE, ID_FREQ_SLIDER, ID_FREQ_TEXT, ID_GAIN_SLIDER, ID_GAIN_TEXT, ID_RADIOBUTTON_KEEPNOISE, ID_RADIOBUTTON_KEEPSIGNAL, ID_SENSITIVITY_SLIDER, ID_SENSITIVITY_TEXT, ID_TIME_SLIDER, ID_TIME_TEXT, m_pButton_GetProfile, mFreqS, mFreqT, mGainS, mGainT, ShuttleGui::MinSize(), mKeepNoise, mKeepSignal, mSensitivityS, mSensitivityT, mTimeS, mTimeT, ShuttleGui::Name(), SENSITIVITY_MAX, SENSITIVITY_MIN, ShuttleGuiBase::SetStretchyCol(), ShuttleGuiBase::StartMultiColumn(), ShuttleGuiBase::StartStatic(), TIME_MAX, TIME_MIN, ShuttleGui::Validator(), XO, and XXO.

Here is the call graph for this function:

◆ TransferDataFromWindow()

bool NoiseRemovalDialog::TransferDataFromWindow ( )
override

Definition at line 791 of file NoiseRemoval.cpp.

792 {
793  // Nothing to do here
794  return true;
795 }

Referenced by OnPreview().

Here is the caller graph for this function:

◆ TransferDataToWindow()

bool NoiseRemovalDialog::TransferDataToWindow ( )
override

Definition at line 774 of file NoiseRemoval.cpp.

775 {
776  mSensitivityT->SetValue(wxString::Format(wxT("%.2f"), mSensitivity));
777  mGainT->SetValue(wxString::Format(wxT("%d"), (int)mGain));
778  mFreqT->SetValue(wxString::Format(wxT("%d"), (int)mFreq));
779  mTimeT->SetValue(wxString::Format(wxT("%.2f"), mTime));
780  mKeepNoise->SetValue(mbLeaveNoise);
781  mKeepSignal->SetValue(!mbLeaveNoise);
782 
784  mGainS->SetValue(TrapLong(mGain, GAIN_MIN, GAIN_MAX));
785  mFreqS->SetValue(TrapLong(mFreq / 10, FREQ_MIN, FREQ_MAX));
786  mTimeS->SetValue(TrapLong(mTime * TIME_MAX + 0.5, TIME_MIN, TIME_MAX));
787 
788  return true;
789 }

References FREQ_MAX, FREQ_MIN, GAIN_MAX, GAIN_MIN, mbLeaveNoise, mFreq, mFreqS, mFreqT, mGain, mGainS, mGainT, mKeepNoise, mKeepSignal, mSensitivity, mSensitivityS, mSensitivityT, mTime, mTimeS, mTimeT, SENSITIVITY_MAX, SENSITIVITY_MIN, TIME_MAX, TIME_MIN, and TrapLong().

Referenced by EffectNoiseRemoval::ShowInterface().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_pButton_GetProfile

wxButton* NoiseRemovalDialog::m_pButton_GetProfile

Definition at line 168 of file NoiseRemoval.h.

Referenced by PopulateOrExchange().

◆ m_pButton_Preview

wxButton* NoiseRemovalDialog::m_pButton_Preview

Definition at line 169 of file NoiseRemoval.h.

Referenced by EffectNoiseRemoval::ShowInterface().

◆ m_pButton_RemoveNoise

wxButton* NoiseRemovalDialog::m_pButton_RemoveNoise

Definition at line 170 of file NoiseRemoval.h.

Referenced by EffectNoiseRemoval::ShowInterface().

◆ m_pEffect

EffectNoiseRemoval* NoiseRemovalDialog::m_pEffect

Definition at line 166 of file NoiseRemoval.h.

Referenced by OnPreview().

◆ mbLeaveNoise

bool NoiseRemovalDialog::mbLeaveNoise

◆ mFreq

double NoiseRemovalDialog::mFreq

◆ mFreqS

wxSlider* NoiseRemovalDialog::mFreqS

Definition at line 177 of file NoiseRemoval.h.

Referenced by OnFreqSlider(), OnFreqText(), PopulateOrExchange(), and TransferDataToWindow().

◆ mFreqT

wxTextCtrl* NoiseRemovalDialog::mFreqT

Definition at line 182 of file NoiseRemoval.h.

Referenced by OnFreqSlider(), OnFreqText(), PopulateOrExchange(), and TransferDataToWindow().

◆ mGain

double NoiseRemovalDialog::mGain

◆ mGainS

wxSlider* NoiseRemovalDialog::mGainS

Definition at line 176 of file NoiseRemoval.h.

Referenced by OnGainSlider(), OnGainText(), PopulateOrExchange(), and TransferDataToWindow().

◆ mGainT

wxTextCtrl* NoiseRemovalDialog::mGainT

Definition at line 181 of file NoiseRemoval.h.

Referenced by OnGainSlider(), OnGainText(), PopulateOrExchange(), and TransferDataToWindow().

◆ mKeepNoise

wxRadioButton* NoiseRemovalDialog::mKeepNoise

◆ mKeepSignal

wxRadioButton* NoiseRemovalDialog::mKeepSignal

◆ mSensitivity

double NoiseRemovalDialog::mSensitivity

◆ mSensitivityS

wxSlider* NoiseRemovalDialog::mSensitivityS

◆ mSensitivityT

wxTextCtrl* NoiseRemovalDialog::mSensitivityT

◆ mTime

double NoiseRemovalDialog::mTime

◆ mTimeS

wxSlider* NoiseRemovalDialog::mTimeS

Definition at line 178 of file NoiseRemoval.h.

Referenced by OnTimeSlider(), OnTimeText(), PopulateOrExchange(), and TransferDataToWindow().

◆ mTimeT

wxTextCtrl* NoiseRemovalDialog::mTimeT

Definition at line 183 of file NoiseRemoval.h.

Referenced by OnTimeSlider(), OnTimeText(), PopulateOrExchange(), and TransferDataToWindow().


The documentation for this class was generated from the following files:
ID_SENSITIVITY_SLIDER
@ ID_SENSITIVITY_SLIDER
Definition: NoiseRemoval.cpp:597
EffectTypeProcess
@ EffectTypeProcess
Definition: EffectInterface.h:59
EffectNoiseRemoval::mDoProfile
bool mDoProfile
Definition: NoiseRemoval.h:63
EffectDialog::Init
void Init()
Definition: EffectUI.cpp:2055
NoiseRemovalDialog::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: NoiseRemoval.cpp:791
TIME_MIN
#define TIME_MIN
Definition: NoiseRemoval.cpp:616
NoiseRemovalDialog::mKeepNoise
wxRadioButton * mKeepNoise
Definition: NoiseRemoval.h:173
FREQ_MAX
#define FREQ_MAX
Definition: NoiseRemoval.cpp:614
SENSITIVITY_MAX
#define SENSITIVITY_MAX
Definition: NoiseRemoval.cpp:608
ShuttleGuiBase::AddRadioButtonToGroup
wxRadioButton * AddRadioButtonToGroup(const TranslatableString &Prompt, int selector=1, int initValue=0)
Definition: ShuttleGui.cpp:574
TIME_MAX
#define TIME_MAX
Definition: NoiseRemoval.cpp:617
ShuttleGui::MinSize
ShuttleGui & MinSize()
Definition: ShuttleGui.h:733
XO
#define XO(s)
Definition: Internat.h:31
EffectDialog::EffectDialog
EffectDialog(wxWindow *parent, const TranslatableString &title, int type=0, int flags=wxDEFAULT_DIALOG_STYLE, int additionalButtons=0)
Definition: EffectUI.cpp:2044
NoiseRemovalDialog::mFreq
double mFreq
Definition: NoiseRemoval.h:187
ShuttleGuiBase::EndMultiColumn
void EndMultiColumn()
Definition: ShuttleGui.cpp:1238
ID_EFFECT_PREVIEW
#define ID_EFFECT_PREVIEW
Definition: Effect.h:549
GAIN_MIN
#define GAIN_MIN
Definition: NoiseRemoval.cpp:610
ShuttleGui::Id
ShuttleGui & Id(int id)
Definition: ShuttleGui.cpp:2274
ID_FREQ_TEXT
@ ID_FREQ_TEXT
Definition: NoiseRemoval.cpp:603
NoiseRemovalDialog::mGainT
wxTextCtrl * mGainT
Definition: NoiseRemoval.h:181
ID_TIME_TEXT
@ ID_TIME_TEXT
Definition: NoiseRemoval.cpp:604
NoiseRemovalDialog::mSensitivityT
wxTextCtrl * mSensitivityT
Definition: NoiseRemoval.h:180
ID_BUTTON_GETPROFILE
@ ID_BUTTON_GETPROFILE
Definition: NoiseRemoval.cpp:593
XXO
#define XXO(s)
Definition: Internat.h:44
NoiseRemovalDialog::m_pButton_Preview
wxButton * m_pButton_Preview
Definition: NoiseRemoval.h:169
EffectNoiseRemoval::mbLeaveNoise
bool mbLeaveNoise
Definition: NoiseRemoval.h:83
ShuttleGuiBase::StartMultiColumn
void StartMultiColumn(int nCols, int PositionFlags=wxALIGN_LEFT)
Definition: ShuttleGui.cpp:1229
NoiseRemovalDialog::mTimeS
wxSlider * mTimeS
Definition: NoiseRemoval.h:178
NoiseRemovalDialog::mFreqT
wxTextCtrl * mFreqT
Definition: NoiseRemoval.h:182
NoiseRemovalDialog::mSensitivity
double mSensitivity
Definition: NoiseRemoval.h:185
SENSITIVITY_MIN
#define SENSITIVITY_MIN
Definition: NoiseRemoval.cpp:607
EffectNoiseRemoval::mAttackDecayTime
double mAttackDecayTime
Definition: NoiseRemoval.h:82
ID_TIME_SLIDER
@ ID_TIME_SLIDER
Definition: NoiseRemoval.cpp:600
EffectNoiseRemoval::mSensitivity
double mSensitivity
Definition: NoiseRemoval.h:79
ShuttleGui::Validator
ShuttleGui & Validator(const Factory &f)
Definition: ShuttleGui.h:678
ID_RADIOBUTTON_KEEPNOISE
@ ID_RADIOBUTTON_KEEPNOISE
Definition: NoiseRemoval.cpp:596
NoiseRemovalDialog::m_pButton_GetProfile
wxButton * m_pButton_GetProfile
Definition: NoiseRemoval.h:168
NoiseRemovalDialog::mGainS
wxSlider * mGainS
Definition: NoiseRemoval.h:176
ShuttleGuiBase::AddRadioButton
wxRadioButton * AddRadioButton(const TranslatableString &Prompt, int selector=0, int initValue=0)
Definition: ShuttleGui.cpp:568
ID_GAIN_TEXT
@ ID_GAIN_TEXT
Definition: NoiseRemoval.cpp:602
FREQ_MIN
#define FREQ_MIN
Definition: NoiseRemoval.cpp:613
Effect::Preview
virtual void Preview(bool dryOnly)
Definition: Effect.cpp:2295
GAIN_MAX
#define GAIN_MAX
Definition: NoiseRemoval.cpp:611
ShuttleGuiBase::AddButton
wxButton * AddButton(const TranslatableString &Text, int PositionFlags=wxALIGN_CENTRE, bool setDefault=false)
Definition: ShuttleGui.cpp:360
ShuttleGuiBase::StartStatic
wxStaticBox * StartStatic(const TranslatableString &Str, int iProp=0)
Definition: ShuttleGui.cpp:893
ShuttleGui::Name
ShuttleGui & Name(const TranslatableString &name)
Definition: ShuttleGui.h:663
ID_GAIN_SLIDER
@ ID_GAIN_SLIDER
Definition: NoiseRemoval.cpp:598
EffectNoiseRemoval::mFreqSmoothingHz
double mFreqSmoothingHz
Definition: NoiseRemoval.h:80
NoiseRemovalDialog::m_pEffect
EffectNoiseRemoval * m_pEffect
Definition: NoiseRemoval.h:166
NoiseRemovalDialog::mKeepSignal
wxRadioButton * mKeepSignal
Definition: NoiseRemoval.h:172
NoiseRemovalDialog::mTime
double mTime
Definition: NoiseRemoval.h:188
NoiseRemovalDialog::mGain
double mGain
Definition: NoiseRemoval.h:186
TrapLong
long TrapLong(long x, long min, long max)
Definition: Effect.h:575
ID_RADIOBUTTON_KEEPSIGNAL
@ ID_RADIOBUTTON_KEEPSIGNAL
Definition: NoiseRemoval.cpp:595
ShuttleGuiBase::AddPrompt
void AddPrompt(const TranslatableString &Prompt, int wrapWidth=0)
Right aligned text string.
Definition: ShuttleGui.cpp:238
ShuttleGuiBase::AddVariableText
wxStaticText * AddVariableText(const TranslatableString &Str, bool bCenter=false, int PositionFlags=0, int wrapWidth=0)
Definition: ShuttleGui.cpp:463
EffectNoiseRemoval::mNoiseGain
double mNoiseGain
Definition: NoiseRemoval.h:81
ShuttleGuiBase::EndStatic
void EndStatic()
Definition: ShuttleGui.cpp:922
ID_SENSITIVITY_TEXT
@ ID_SENSITIVITY_TEXT
Definition: NoiseRemoval.cpp:601
NoiseRemovalDialog::mSensitivityS
wxSlider * mSensitivityS
Definition: NoiseRemoval.h:175
ShuttleGuiBase::SetStretchyCol
void SetStretchyCol(int i)
Used to modify an already placed FlexGridSizer to make a column stretchy.
Definition: ShuttleGui.cpp:202
NoiseRemovalDialog::m_pButton_RemoveNoise
wxButton * m_pButton_RemoveNoise
Definition: NoiseRemoval.h:170
NoiseRemovalDialog::mFreqS
wxSlider * mFreqS
Definition: NoiseRemoval.h:177
NoiseRemovalDialog::mTimeT
wxTextCtrl * mTimeT
Definition: NoiseRemoval.h:183
NoiseRemovalDialog::mbLeaveNoise
bool mbLeaveNoise
Definition: NoiseRemoval.h:190
ID_FREQ_SLIDER
@ ID_FREQ_SLIDER
Definition: NoiseRemoval.cpp:599