Audacity  2.2.2
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
EffectAutoDuck Class Referencefinal

Implements the Auto Ducking effect. More...

#include <AutoDuck.h>

Inheritance diagram for EffectAutoDuck:
Effect EffectClientInterface EffectUIClientInterface EffectHostInterface EffectDefinitionInterface ConfigClientInterface IdentInterface ParamsInterface

Public Member Functions

 EffectAutoDuck ()
 
virtual ~EffectAutoDuck ()
 
IdentInterfaceSymbol GetSymbol () override
 
wxString GetDescription () override
 
wxString ManualPage () override
 
EffectType GetType () override
 
bool DefineParams (ShuttleParams &S) override
 
bool GetAutomationParameters (CommandParameters &parms) override
 
bool SetAutomationParameters (CommandParameters &parms) override
 
bool Startup () override
 
bool Init () override
 
void End () override
 
bool Process () override
 
void PopulateOrExchange (ShuttleGui &S) override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
- Public Member Functions inherited from Effect
 Effect ()
 
virtual ~Effect ()
 
wxString GetPath () override
 
IdentInterfaceSymbol GetSymbol () override
 
IdentInterfaceSymbol GetVendor () override
 
wxString GetVersion () override
 
wxString GetDescription () override
 
EffectType GetType () override
 
IdentInterfaceSymbol GetFamilyId () override
 
bool IsInteractive () override
 
bool IsDefault () override
 
bool IsLegacy () override
 
bool SupportsRealtime () override
 
bool SupportsAutomation () override
 
bool SetHost (EffectHostInterface *host) override
 
unsigned GetAudioInCount () override
 
unsigned GetAudioOutCount () override
 
int GetMidiInCount () override
 
int GetMidiOutCount () override
 
sampleCount GetLatency () override
 
size_t GetTailSize () override
 
void SetSampleRate (double rate) override
 
size_t SetBlockSize (size_t maxBlockSize) override
 
bool IsReady () override
 
bool ProcessInitialize (sampleCount totalLen, ChannelNames chanMap=NULL) override
 
bool ProcessFinalize () override
 
size_t ProcessBlock (float **inBlock, float **outBlock, size_t blockLen) override
 
bool RealtimeInitialize () override
 
bool RealtimeAddProcessor (unsigned numChannels, float sampleRate) override
 
bool RealtimeFinalize () override
 
bool RealtimeSuspend () override
 
bool RealtimeResume () override
 
bool RealtimeProcessStart () override
 
size_t RealtimeProcess (int group, float **inbuf, float **outbuf, size_t numSamples) override
 
bool RealtimeProcessEnd () override
 
bool ShowInterface (wxWindow *parent, bool forceModal=false) override
 
bool GetAutomationParameters (CommandParameters &parms) override
 
bool SetAutomationParameters (CommandParameters &parms) override
 
bool LoadUserPreset (const wxString &name) override
 
bool SaveUserPreset (const wxString &name) override
 
wxArrayString GetFactoryPresets () override
 
bool LoadFactoryPreset (int id) override
 
bool LoadFactoryDefaults () override
 
void SetHostUI (EffectUIHostInterface *host) override
 
bool PopulateUI (wxWindow *parent) override
 
bool IsGraphicalUI () override
 
bool ValidateUI () override
 
bool HideUI () override
 
bool CloseUI () override
 
bool CanExportPresets () override
 
void ExportPresets () override
 
void ImportPresets () override
 
bool HasOptions () override
 
void ShowOptions () override
 
double GetDefaultDuration () override
 
double GetDuration () override
 
NumericFormatId GetDurationFormat () override
 
virtual NumericFormatId GetSelectionFormat ()
 
void SetDuration (double duration) override
 
bool Apply () override
 
void Preview () override
 
wxDialog * CreateUI (wxWindow *parent, EffectUIClientInterface *client) override
 
wxString GetUserPresetsGroup (const wxString &name) override
 
wxString GetCurrentSettingsGroup () override
 
wxString GetFactoryDefaultsGroup () override
 
virtual wxString GetSavedStateGroup ()
 
bool HasSharedConfigGroup (const wxString &group) override
 
bool GetSharedConfigSubgroups (const wxString &group, wxArrayString &subgroups) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, wxString &value, const wxString &defval=wxEmptyString) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, int &value, int defval=0) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, bool &value, bool defval=false) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, float &value, float defval=0.0) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, double &value, double defval=0.0) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const wxString &value) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const int &value) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const bool &value) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const float &value) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const double &value) override
 
bool RemoveSharedConfigSubgroup (const wxString &group) override
 
bool RemoveSharedConfig (const wxString &group, const wxString &key) override
 
bool HasPrivateConfigGroup (const wxString &group) override
 
bool GetPrivateConfigSubgroups (const wxString &group, wxArrayString &subgroups) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, wxString &value, const wxString &defval=wxEmptyString) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, int &value, int defval=0) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, bool &value, bool defval=false) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, float &value, float defval=0.0) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, double &value, double defval=0.0) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const wxString &value) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const int &value) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const bool &value) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const float &value) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const double &value) override
 
bool RemovePrivateConfigSubgroup (const wxString &group) override
 
bool RemovePrivateConfig (const wxString &group, const wxString &key) override
 
virtual PluginID GetID ()
 
virtual bool Startup (EffectClientInterface *client)
 
virtual bool GetAutomationParameters (wxString &parms)
 
virtual bool SetAutomationParameters (const wxString &parms)
 
virtual wxArrayString GetUserPresets ()
 
virtual bool HasCurrentSettings ()
 
virtual bool HasFactoryDefaults ()
 
virtual wxString GetPreset (wxWindow *parent, const wxString &parms)
 
virtual wxString HelpPage ()
 
virtual bool IsBatchProcessing ()
 
virtual void SetBatchProcessing (bool start)
 
void SetPresetParameters (const wxArrayString *Names, const wxArrayString *Values)
 
bool DoEffect (wxWindow *parent, double projectRate, TrackList *list, TrackFactory *factory, SelectedRegion *selectedRegion, bool shouldPrompt=true)
 
bool Delegate (Effect &delegate, wxWindow *parent, bool shouldPrompt)
 
bool RealtimeAddProcessor (int group, unsigned chans, float rate)
 
size_t RealtimeProcess (int group, unsigned chans, float **inbuf, float **outbuf, size_t numSamples)
 
bool IsRealtimeActive ()
 
virtual bool IsHidden ()
 
int MessageBox (const wxString &message, long style=DefaultMessageBoxStyle, const wxString &titleStr=wxString{})
 
- Public Member Functions inherited from EffectClientInterface
virtual ~EffectClientInterface ()
 
- Public Member Functions inherited from EffectDefinitionInterface
virtual ~EffectDefinitionInterface ()
 
- Public Member Functions inherited from IdentInterface
virtual ~IdentInterface ()
 
const wxString & GetTranslatedName ()
 
- Public Member Functions inherited from ParamsInterface
virtual ~ParamsInterface ()
 
virtual bool DefineParams (ShuttleParams &WXUNUSED(S))
 
- Public Member Functions inherited from EffectUIClientInterface
virtual ~EffectUIClientInterface ()
 
- Public Member Functions inherited from EffectHostInterface
virtual ~EffectHostInterface ()
 
- Public Member Functions inherited from ConfigClientInterface
virtual ~ConfigClientInterface ()
 

Private Member Functions

bool ApplyDuckFade (int trackNum, WaveTrack *t, double t0, double t1)
 
void OnValueChanged (wxCommandEvent &evt)
 

Private Attributes

double mDuckAmountDb
 
double mInnerFadeDownLen
 
double mInnerFadeUpLen
 
double mOuterFadeDownLen
 
double mOuterFadeUpLen
 
double mThresholdDb
 
double mMaximumPause
 
const WaveTrackmControlTrack
 
wxTextCtrl * mDuckAmountDbBox
 
wxTextCtrl * mInnerFadeDownLenBox
 
wxTextCtrl * mInnerFadeUpLenBox
 
wxTextCtrl * mOuterFadeDownLenBox
 
wxTextCtrl * mOuterFadeUpLenBox
 
wxTextCtrl * mThresholdDbBox
 
wxTextCtrl * mMaximumPauseBox
 
EffectAutoDuckPanelmPanel
 

Friends

class EffectAutoDuckPanel
 

Additional Inherited Members

- Public Types inherited from Effect
enum  : long { DefaultMessageBoxStyle = wxOK | wxCENTRE }
 
- Protected Member Functions inherited from Effect
virtual bool PromptUser (wxWindow *parent)
 
virtual bool CheckWhetherSkipEffect ()
 
virtual bool ProcessPass ()
 
virtual bool InitPass1 ()
 
virtual bool InitPass2 ()
 
virtual int GetPass ()
 
virtual double CalcPreviewInputLength (double previewLength)
 
virtual void Preview (bool dryOnly)
 
virtual bool EnableApply (bool enable=true)
 
virtual bool EnablePreview (bool enable=true)
 
virtual void EnableDebug (bool enable=true)
 
bool TotalProgress (double frac)
 
bool TrackProgress (int whichTrack, double frac, const wxString &=wxEmptyString)
 
bool TrackGroupProgress (int whichGroup, double frac, const wxString &=wxEmptyString)
 
int GetNumWaveTracks ()
 
int GetNumWaveGroups ()
 
void GetSamples (const WaveTrack *track, sampleCount *start, sampleCount *len)
 
void SetLinearEffectFlag (bool linearEffectFlag)
 
void SetPreviewFullSelectionFlag (bool previewDurationFlag)
 
bool IsPreviewing ()
 
void IncludeNotSelectedPreviewTracks (bool includeNotSelected)
 
void CopyInputTracks ()
 
void CopyInputTracks (int trackType)
 
std::shared_ptr
< AddedAnalysisTrack
AddAnalysisTrack (const wxString &name=wxString())
 
ModifiedAnalysisTrack ModifyAnalysisTrack (const LabelTrack *pOrigTrack, const wxString &name=wxString())
 
void ReplaceProcessedTracks (const bool bGoodResult)
 
TrackAddToOutputTracks (std::unique_ptr< Track > &&t)
 
TrackListinputTracks () const
 
- Protected Attributes inherited from Effect
ProgressDialogmProgress
 
double mProjectRate
 
double mSampleRate
 
SelectedRegionmpSelectedRegion {}
 
TrackFactorymFactory
 
std::shared_ptr< TrackListmOutputTracks
 
double mT0
 
double mT1
 
double mF0
 
double mF1
 
wxArrayString mPresetNames
 
wxArrayString mPresetValues
 
int mPass
 
wxDialog * mUIDialog
 
wxWindow * mUIParent
 
int mUIResultID
 
sampleCount mSampleCnt
 
int mOutputTracksType
 

Detailed Description

Implements the Auto Ducking effect.

Definition at line 31 of file AutoDuck.h.

Constructor & Destructor Documentation

EffectAutoDuck::EffectAutoDuck ( )

Definition at line 82 of file AutoDuck.cpp.

83 {
84  mDuckAmountDb = DEF_DuckAmountDb;
85  mInnerFadeDownLen = DEF_InnerFadeDownLen;
86  mInnerFadeUpLen = DEF_InnerFadeUpLen;
87  mOuterFadeDownLen = DEF_OuterFadeDownLen;
88  mOuterFadeUpLen = DEF_OuterFadeUpLen;
89  mThresholdDb = DEF_ThresholdDb;
90  mMaximumPause = DEF_MaximumPause;
91 
92  SetLinearEffectFlag(true);
93 
94  mControlTrack = NULL;
95 
96  mPanel = NULL;
97 }
double mInnerFadeDownLen
Definition: AutoDuck.h:72
void SetLinearEffectFlag(bool linearEffectFlag)
Definition: Effect.cpp:1963
double mMaximumPause
Definition: AutoDuck.h:77
double mOuterFadeUpLen
Definition: AutoDuck.h:75
double mDuckAmountDb
Definition: AutoDuck.h:71
double mThresholdDb
Definition: AutoDuck.h:76
EffectAutoDuckPanel * mPanel
Definition: AutoDuck.h:88
const WaveTrack * mControlTrack
Definition: AutoDuck.h:79
double mOuterFadeDownLen
Definition: AutoDuck.h:74
double mInnerFadeUpLen
Definition: AutoDuck.h:73
EffectAutoDuck::~EffectAutoDuck ( )
virtual

Definition at line 99 of file AutoDuck.cpp.

100 {
101 }

Member Function Documentation

bool EffectAutoDuck::ApplyDuckFade ( int  trackNum,
WaveTrack t,
double  t0,
double  t1 
)
private

Definition at line 521 of file AutoDuck.cpp.

References DB_TO_LINEAR(), floatSample, WaveTrack::Get(), Effect::GetNumWaveTracks(), limitSampleBufferSize(), WaveTrack::LongSamplesToTime(), mDuckAmountDb, mInnerFadeDownLen, mInnerFadeUpLen, mOuterFadeDownLen, mOuterFadeUpLen, Effect::mT0, Effect::mT1, WaveTrack::Set(), WaveTrack::TimeToLongSamples(), and Effect::TotalProgress().

Referenced by Process().

523 {
524  bool cancel = false;
525 
526  auto start = t->TimeToLongSamples(t0);
527  auto end = t->TimeToLongSamples(t1);
528 
529  Floats buf{ kBufSize };
530  auto pos = start;
531 
532  auto fadeDownSamples = t->TimeToLongSamples(
534  if (fadeDownSamples < 1)
535  fadeDownSamples = 1;
536 
537  auto fadeUpSamples = t->TimeToLongSamples(
539  if (fadeUpSamples < 1)
540  fadeUpSamples = 1;
541 
542  float fadeDownStep = mDuckAmountDb / fadeDownSamples.as_double();
543  float fadeUpStep = mDuckAmountDb / fadeUpSamples.as_double();
544 
545  while (pos < end)
546  {
547  const auto len = limitSampleBufferSize( kBufSize, end - pos );
548 
549  t->Get((samplePtr)buf.get(), floatSample, pos, len);
550 
551  for (auto i = pos; i < pos + len; i++)
552  {
553  float gainDown = fadeDownStep * (i - start).as_float();
554  float gainUp = fadeUpStep * (end - i).as_float();
555 
556  float gain;
557  if (gainDown > gainUp)
558  gain = gainDown;
559  else
560  gain = gainUp;
561  if (gain < mDuckAmountDb)
562  gain = mDuckAmountDb;
563 
564  // i - pos is bounded by len:
565  buf[ ( i - pos ).as_size_t() ] *= DB_TO_LINEAR(gain);
566  }
567 
568  t->Set((samplePtr)buf.get(), floatSample, pos, len);
569 
570  pos += len;
571 
572  float curTime = t->LongSamplesToTime(pos);
573  float fractionFinished = (curTime - mT0) / (mT1 - mT0);
574  if (TotalProgress( (trackNum + 1 + fractionFinished) /
575  (GetNumWaveTracks() + 1) ))
576  {
577  cancel = true;
578  break;
579  }
580  }
581 
582  return cancel;
583 }
double mT1
Definition: Effect.h:461
bool TotalProgress(double frac)
Definition: Effect.cpp:1979
double mInnerFadeDownLen
Definition: AutoDuck.h:72
double mOuterFadeUpLen
Definition: AutoDuck.h:75
double mDuckAmountDb
Definition: AutoDuck.h:71
size_t limitSampleBufferSize(size_t bufferSize, sampleCount limit)
Definition: Types.h:177
void Set(samplePtr buffer, sampleFormat format, sampleCount start, size_t len)
Definition: WaveTrack.cpp:2052
char * samplePtr
Definition: Types.h:202
int GetNumWaveTracks()
Definition: Effect.h:343
sampleCount TimeToLongSamples(double t0) const
Convert correctly between an (absolute) time in seconds and a number of samples.
Definition: WaveTrack.cpp:1843
bool Get(samplePtr buffer, sampleFormat format, sampleCount start, size_t len, fillFormat fill=fillZero, bool mayThrow=true, sampleCount *pNumCopied=nullptr) const
Definition: WaveTrack.cpp:1971
double LongSamplesToTime(sampleCount pos) const
Convert correctly between an number of samples and an (absolute) time in seconds. ...
Definition: WaveTrack.cpp:1848
const double MIN_Threshold_Linear DB_TO_LINEAR(MIN_Threshold_dB)
double mOuterFadeDownLen
Definition: AutoDuck.h:74
double mInnerFadeUpLen
Definition: AutoDuck.h:73
double mT0
Definition: Effect.h:460
static const size_t kBufSize
Definition: AutoDuck.cpp:55
bool EffectAutoDuck::DefineParams ( ShuttleParams S)
override

Definition at line 128 of file AutoDuck.cpp.

References mDuckAmountDb, mInnerFadeDownLen, mInnerFadeUpLen, mMaximumPause, mOuterFadeDownLen, mOuterFadeUpLen, and mThresholdDb.

128  {
129  S.SHUTTLE_PARAM( mDuckAmountDb, DuckAmountDb);
130  S.SHUTTLE_PARAM( mInnerFadeDownLen, InnerFadeDownLen);
131  S.SHUTTLE_PARAM( mInnerFadeUpLen, InnerFadeUpLen);
132  S.SHUTTLE_PARAM( mOuterFadeDownLen, OuterFadeDownLen);
133  S.SHUTTLE_PARAM( mOuterFadeUpLen, OuterFadeUpLen);
134  S.SHUTTLE_PARAM( mThresholdDb, ThresholdDb);
135  S.SHUTTLE_PARAM( mMaximumPause, MaximumPause);
136  return true;
137 }
double mInnerFadeDownLen
Definition: AutoDuck.h:72
double mMaximumPause
Definition: AutoDuck.h:77
double mOuterFadeUpLen
Definition: AutoDuck.h:75
double mDuckAmountDb
Definition: AutoDuck.h:71
double mThresholdDb
Definition: AutoDuck.h:76
double mOuterFadeDownLen
Definition: AutoDuck.h:74
double mInnerFadeUpLen
Definition: AutoDuck.h:73
void EffectAutoDuck::End ( )
overridevirtual

Reimplemented from Effect.

Definition at line 263 of file AutoDuck.cpp.

References mControlTrack.

264 {
265  mControlTrack = NULL;
266 }
const WaveTrack * mControlTrack
Definition: AutoDuck.h:79
bool EffectAutoDuck::GetAutomationParameters ( CommandParameters parms)
overridevirtual

Implements EffectClientInterface.

Definition at line 139 of file AutoDuck.cpp.

References mDuckAmountDb, mInnerFadeDownLen, mInnerFadeUpLen, mMaximumPause, mOuterFadeDownLen, mOuterFadeUpLen, and mThresholdDb.

140 {
141  parms.Write(KEY_DuckAmountDb, mDuckAmountDb);
142  parms.Write(KEY_InnerFadeDownLen, mInnerFadeDownLen);
143  parms.Write(KEY_InnerFadeUpLen, mInnerFadeUpLen);
144  parms.Write(KEY_OuterFadeDownLen, mOuterFadeDownLen);
145  parms.Write(KEY_OuterFadeUpLen, mOuterFadeUpLen);
146  parms.Write(KEY_ThresholdDb, mThresholdDb);
147  parms.Write(KEY_MaximumPause, mMaximumPause);
148 
149  return true;
150 }
double mInnerFadeDownLen
Definition: AutoDuck.h:72
double mMaximumPause
Definition: AutoDuck.h:77
double mOuterFadeUpLen
Definition: AutoDuck.h:75
double mDuckAmountDb
Definition: AutoDuck.h:71
double mThresholdDb
Definition: AutoDuck.h:76
double mOuterFadeDownLen
Definition: AutoDuck.h:74
double mInnerFadeUpLen
Definition: AutoDuck.h:73
wxString EffectAutoDuck::GetDescription ( )
overridevirtual

Implements IdentInterface.

Definition at line 110 of file AutoDuck.cpp.

References _().

111 {
112  return _("Reduces (ducks) the volume of one or more tracks whenever the volume of a specified \"control\" track reaches a particular level");
113 }
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
IdentInterfaceSymbol EffectAutoDuck::GetSymbol ( )
overridevirtual

Implements IdentInterface.

Definition at line 105 of file AutoDuck.cpp.

References AUTODUCK_PLUGIN_SYMBOL.

106 {
107  return AUTODUCK_PLUGIN_SYMBOL;
108 }
#define AUTODUCK_PLUGIN_SYMBOL
Definition: AutoDuck.h:29
EffectType EffectAutoDuck::GetType ( )
overridevirtual

Implements EffectDefinitionInterface.

Definition at line 122 of file AutoDuck.cpp.

References EffectTypeProcess.

123 {
124  return EffectTypeProcess;
125 }
bool EffectAutoDuck::Init ( )
overridevirtual

Reimplemented from Effect.

Definition at line 208 of file AutoDuck.cpp.

References _(), TrackListIterator::First(), Track::GetKind(), Track::GetSelected(), Effect::inputTracks(), mControlTrack, Effect::MessageBox(), TrackListIterator::Next(), and Track::Wave.

209 {
210  mControlTrack = NULL;
211 
213  Track *t = iter.First();
214 
215  bool lastWasSelectedWaveTrack = false;
216  const WaveTrack *controlTrackCandidate = NULL;
217 
218  while(t)
219  {
220  if (lastWasSelectedWaveTrack && !t->GetSelected() &&
221  t->GetKind() == Track::Wave)
222  {
223  // This could be the control track, so remember it
224  controlTrackCandidate = (WaveTrack*)t;
225  }
226 
227  lastWasSelectedWaveTrack = false;
228 
229  if (t->GetSelected())
230  {
231  if (t->GetKind() == Track::Wave)
232  {
233  lastWasSelectedWaveTrack = true;
234  }
235  else
236  {
238  _("You selected a track which does not contain audio. AutoDuck can only process audio tracks."),
239  /* i18n-hint: Auto duck is the name of an effect that 'ducks' (reduces the volume)
240  * of the audio automatically when there is sound on another track. Not as
241  * in 'Donald-Duck'!*/
242  wxICON_ERROR);
243  return false;
244  }
245  }
246 
247  t = iter.Next();
248  }
249 
250  if (!controlTrackCandidate)
251  {
253  _("Auto Duck needs a control track which must be placed below the selected track(s)."),
254  wxICON_ERROR);
255  return false;
256  }
257 
258  mControlTrack = controlTrackCandidate;
259 
260  return true;
261 }
int MessageBox(const wxString &message, long style=DefaultMessageBoxStyle, const wxString &titleStr=wxString{})
Definition: Effect.cpp:2664
bool GetSelected() const
Definition: Track.h:275
TrackList * inputTracks() const
Definition: Effect.h:458
virtual int GetKind() const
Definition: Track.h:329
A Track that contains audio waveform data.
Definition: WaveTrack.h:60
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:101
An iterator for a TrackList.
Definition: Track.h:401
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
const WaveTrack * mControlTrack
Definition: AutoDuck.h:79
wxString EffectAutoDuck::ManualPage ( )
overridevirtual

Reimplemented from Effect.

Definition at line 115 of file AutoDuck.cpp.

116 {
117  return wxT("Auto_Duck");
118 }
void EffectAutoDuck::OnValueChanged ( wxCommandEvent &  evt)
private

Definition at line 585 of file AutoDuck.cpp.

References mPanel.

586 {
587  mPanel->Refresh(false);
588 }
EffectAutoDuckPanel * mPanel
Definition: AutoDuck.h:88
void EffectAutoDuck::PopulateOrExchange ( ShuttleGui S)
overridevirtual

Reimplemented from Effect.

Definition at line 428 of file AutoDuck.cpp.

References _(), ShuttleGui::AddSpace(), ShuttleGuiBase::AddTextBox(), ShuttleGuiBase::AddUnits(), ShuttleGuiBase::AddWindow(), EffectAutoDuckPanel, ShuttleGuiBase::EndMultiColumn(), ShuttleGuiBase::EndVerticalLay(), ShuttleGuiBase::GetParent(), mDuckAmountDb, mDuckAmountDbBox, mInnerFadeDownLen, mInnerFadeDownLenBox, mInnerFadeUpLen, mInnerFadeUpLenBox, mMaximumPause, mMaximumPauseBox, mOuterFadeDownLen, mOuterFadeDownLenBox, mOuterFadeUpLen, mOuterFadeUpLenBox, mPanel, mThresholdDb, mThresholdDbBox, safenew, ShuttleGuiBase::SetBorder(), ShuttleGuiBase::StartMultiColumn(), and ShuttleGuiBase::StartVerticalLay().

429 {
430  S.SetBorder(5);
431  S.StartVerticalLay(true);
432  {
433  S.AddSpace(0, 5);
434 
435  mPanel = safenew EffectAutoDuckPanel(S.GetParent(), wxID_ANY, this);
436  S.AddWindow(mPanel);
437 
438  S.AddSpace(0, 5);
439 
440  S.StartMultiColumn(6, wxCENTER);
441  {
442  FloatingPointValidator<double> vldDuckAmountDb(1, &mDuckAmountDb, NumValidatorStyle::NO_TRAILING_ZEROES);
443  vldDuckAmountDb.SetRange(MIN_DuckAmountDb, MAX_DuckAmountDb);
444  mDuckAmountDbBox = S.AddTextBox(_("Duck amount:"), wxT(""), 10);
445  mDuckAmountDbBox->SetValidator(vldDuckAmountDb);
446  S.AddUnits(_("dB"));
447 
448  FloatingPointValidator<double> vldMaximumPause(2, &mMaximumPause, NumValidatorStyle::NO_TRAILING_ZEROES);
449  vldMaximumPause.SetRange(MIN_MaximumPause, MAX_MaximumPause);
450  mMaximumPauseBox = S.AddTextBox(_("Maximum pause:"), wxT(""), 10);
451  mMaximumPauseBox->SetValidator(vldMaximumPause);
452  S.AddUnits(_("seconds"));
453 
454  FloatingPointValidator<double> vldOuterFadeDownLen(2, &mOuterFadeDownLen, NumValidatorStyle::NO_TRAILING_ZEROES);
455  vldOuterFadeDownLen.SetRange(MIN_OuterFadeDownLen, MAX_OuterFadeDownLen);
456  mOuterFadeDownLenBox = S.AddTextBox(_("Outer fade down length:"), wxT(""), 10);
457  mOuterFadeDownLenBox->SetValidator(vldOuterFadeDownLen);
458  S.AddUnits(_("seconds"));
459 
460  FloatingPointValidator<double> vldOuterFadeUpLen(2, &mOuterFadeUpLen, NumValidatorStyle::NO_TRAILING_ZEROES);
461  vldOuterFadeUpLen.SetRange(MIN_OuterFadeUpLen, MAX_OuterFadeUpLen);
462  mOuterFadeUpLenBox = S.AddTextBox(_("Outer fade up length:"), wxT(""), 10);
463  mOuterFadeUpLenBox->SetValidator(vldOuterFadeUpLen);
464  S.AddUnits(_("seconds"));
465 
466  FloatingPointValidator<double> vldInnerFadeDownLen(2, &mInnerFadeDownLen, NumValidatorStyle::NO_TRAILING_ZEROES);
467  vldInnerFadeDownLen.SetRange(MIN_InnerFadeDownLen, MAX_InnerFadeDownLen);
468  mInnerFadeDownLenBox = S.AddTextBox(_("Inner fade down length:"), wxT(""), 10);
469  mInnerFadeDownLenBox->SetValidator(vldInnerFadeDownLen);
470  S.AddUnits(_("seconds"));
471 
472  FloatingPointValidator<double> vldInnerFadeUpLen(2, &mInnerFadeUpLen, NumValidatorStyle::NO_TRAILING_ZEROES);
473  vldInnerFadeUpLen.SetRange(MIN_InnerFadeUpLen, MAX_InnerFadeUpLen);
474  mInnerFadeUpLenBox = S.AddTextBox(_("Inner fade up length:"), wxT(""), 10);
475  mInnerFadeUpLenBox->SetValidator(vldInnerFadeUpLen);
476  S.AddUnits(_("seconds"));
477  }
478  S.EndMultiColumn();
479 
480  S.StartMultiColumn(3, wxCENTER);
481  {
482  FloatingPointValidator<double> vldThresholdDb(2, &mThresholdDb, NumValidatorStyle::NO_TRAILING_ZEROES);
483  vldThresholdDb.SetRange(MIN_ThresholdDb, MAX_ThresholdDb);
484  mThresholdDbBox = S.AddTextBox(_("Threshold:"), wxT(""), 10);
485  mThresholdDbBox->SetValidator(vldThresholdDb);
486  S.AddUnits(_("dB"));
487  }
488  S.EndMultiColumn();
489 
490  }
491  S.EndVerticalLay();
492 
493  return;
494 }
wxTextCtrl * mInnerFadeUpLenBox
Definition: AutoDuck.h:83
double mInnerFadeDownLen
Definition: AutoDuck.h:72
wxWindow * AddWindow(wxWindow *pWindow, int Flags=wxALIGN_CENTRE|wxALL)
Definition: ShuttleGui.cpp:288
void EndMultiColumn()
wxTextCtrl * mThresholdDbBox
Definition: AutoDuck.h:86
double mMaximumPause
Definition: AutoDuck.h:77
double mOuterFadeUpLen
Definition: AutoDuck.h:75
double mDuckAmountDb
Definition: AutoDuck.h:71
#define safenew
Definition: Audacity.h:230
void AddUnits(const wxString &Prompt)
Left aligned text string.
Definition: ShuttleGui.cpp:260
double mThresholdDb
Definition: AutoDuck.h:76
void EndVerticalLay()
wxTextCtrl * AddTextBox(const wxString &Caption, const wxString &Value, const int nChars)
Definition: ShuttleGui.cpp:540
wxTextCtrl * mInnerFadeDownLenBox
Definition: AutoDuck.h:82
wxWindow * GetParent()
Definition: ShuttleGui.h:294
wxTextCtrl * mOuterFadeUpLenBox
Definition: AutoDuck.h:85
void StartMultiColumn(int nCols, int PositionFlags=wxALIGN_LEFT)
friend class EffectAutoDuckPanel
Definition: AutoDuck.h:92
wxTextCtrl * mDuckAmountDbBox
Definition: AutoDuck.h:81
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
wxTextCtrl * mOuterFadeDownLenBox
Definition: AutoDuck.h:84
EffectAutoDuckPanel * mPanel
Definition: AutoDuck.h:88
wxSizerItem * AddSpace(int width, int height)
wxTextCtrl * mMaximumPauseBox
Definition: AutoDuck.h:87
void SetBorder(int Border)
Definition: ShuttleGui.h:286
double mOuterFadeDownLen
Definition: AutoDuck.h:74
double mInnerFadeUpLen
Definition: AutoDuck.h:73
void StartVerticalLay(int iProp=1)
bool EffectAutoDuck::Process ( )
overridevirtual

Reimplemented from Effect.

Definition at line 268 of file AutoDuck.cpp.

References ApplyDuckFade(), Effect::CopyInputTracks(), DB_TO_LINEAR(), floatSample, WaveTrack::Get(), Effect::GetNumWaveTracks(), kRMSWindowSize, limitSampleBufferSize(), WaveTrack::LongSamplesToTime(), mControlTrack, mMaximumPause, mOuterFadeDownLen, mOuterFadeUpLen, Effect::mOutputTracks, Effect::mT0, Effect::mT1, mThresholdDb, Effect::ReplaceProcessedTracks(), AutoDuckRegion::t0, AutoDuckRegion::t1, WaveTrack::TimeToLongSamples(), Effect::TotalProgress(), and Track::Wave.

269 {
270  if (GetNumWaveTracks() == 0 || !mControlTrack)
271  return false;
272 
273  bool cancel = false;
274 
275  auto start =
277  auto end =
279 
280  if (end <= start)
281  return false;
282 
283  // the minimum number of samples we have to wait until the maximum
284  // pause has been exceeded
285  double maxPause = mMaximumPause;
286 
287  // We don't fade in until we have time enough to actually fade out again
288  if (maxPause < mOuterFadeDownLen + mOuterFadeUpLen)
289  maxPause = mOuterFadeDownLen + mOuterFadeUpLen;
290 
291  auto minSamplesPause =
292  mControlTrack->TimeToLongSamples(maxPause);
293 
294  double threshold = DB_TO_LINEAR(mThresholdDb);
295 
296  // adjust the threshold so we can compare it to the rmsSum value
297  threshold = threshold * threshold * kRMSWindowSize;
298 
299  int rmsPos = 0;
300  float rmsSum = 0;
301  // to make the progress bar appear more natural, we first look for all
302  // duck regions and apply them all at once afterwards
303  std::vector<AutoDuckRegion> regions;
304  bool inDuckRegion = false;
305  {
306  Floats rmsWindow{ kRMSWindowSize, true };
307 
308  Floats buf{ kBufSize };
309 
310  // initialize the following two variables to prevent compiler warning
311  double duckRegionStart = 0;
312  sampleCount curSamplesPause = 0;
313 
314  auto pos = start;
315 
316  while (pos < end)
317  {
318  const auto len = limitSampleBufferSize( kBufSize, end - pos );
319 
320  mControlTrack->Get((samplePtr)buf.get(), floatSample, pos, len);
321 
322  for (auto i = pos; i < pos + len; i++)
323  {
324  rmsSum -= rmsWindow[rmsPos];
325  // i - pos is bounded by len:
326  auto index = ( i - pos ).as_size_t();
327  rmsWindow[rmsPos] = buf[ index ] * buf[ index ];
328  rmsSum += rmsWindow[rmsPos];
329  rmsPos = (rmsPos + 1) % kRMSWindowSize;
330 
331  bool thresholdExceeded = rmsSum > threshold;
332 
333  if (thresholdExceeded)
334  {
335  // everytime the threshold is exceeded, reset our count for
336  // the number of pause samples
337  curSamplesPause = 0;
338 
339  if (!inDuckRegion)
340  {
341  // the threshold has been exceeded for the first time, so
342  // let the duck region begin here
343  inDuckRegion = true;
344  duckRegionStart = mControlTrack->LongSamplesToTime(i);
345  }
346  }
347 
348  if (!thresholdExceeded && inDuckRegion)
349  {
350  // the threshold has not been exceeded and we are in a duck
351  // region, but only fade in if the maximum pause has been
352  // exceeded
353  curSamplesPause += 1;
354 
355  if (curSamplesPause >= minSamplesPause)
356  {
357  // do the actual duck fade and reset all values
358  double duckRegionEnd =
359  mControlTrack->LongSamplesToTime(i - curSamplesPause);
360 
361  regions.push_back(AutoDuckRegion(
362  duckRegionStart - mOuterFadeDownLen,
363  duckRegionEnd + mOuterFadeUpLen));
364 
365  inDuckRegion = false;
366  }
367  }
368  }
369 
370  pos += len;
371 
372  if (TotalProgress(
373  (pos - start).as_double() /
374  (end - start).as_double() /
375  (GetNumWaveTracks() + 1)
376  ))
377  {
378  cancel = true;
379  break;
380  }
381  }
382 
383  // apply last duck fade, if any
384  if (inDuckRegion)
385  {
386  double duckRegionEnd =
387  mControlTrack->LongSamplesToTime(end - curSamplesPause);
388  regions.push_back(AutoDuckRegion(
389  duckRegionStart - mOuterFadeDownLen,
390  duckRegionEnd + mOuterFadeUpLen));
391  }
392  }
393 
394  if (!cancel)
395  {
396  CopyInputTracks(); // Set up mOutputTracks.
398  Track *iterTrack = iter.First();
399 
400  int trackNum = 0;
401 
402  while (iterTrack)
403  {
404  WaveTrack* t = (WaveTrack*)iterTrack;
405 
406  for (size_t i = 0; i < regions.size(); i++)
407  {
408  const AutoDuckRegion& region = regions[i];
409  if (ApplyDuckFade(trackNum, t, region.t0, region.t1))
410  {
411  cancel = true;
412  break;
413  }
414  }
415 
416  if (cancel)
417  break;
418 
419  iterTrack = iter.Next();
420  trackNum++;
421  }
422  }
423 
424  ReplaceProcessedTracks(!cancel);
425  return !cancel;
426 }
double mT1
Definition: Effect.h:461
bool TotalProgress(double frac)
Definition: Effect.cpp:1979
void CopyInputTracks()
Definition: Effect.cpp:2038
void ReplaceProcessedTracks(const bool bGoodResult)
Definition: Effect.cpp:2169
static const size_t kRMSWindowSize
Definition: AutoDuck.cpp:56
double mMaximumPause
Definition: AutoDuck.h:77
double mOuterFadeUpLen
Definition: AutoDuck.h:75
size_t limitSampleBufferSize(size_t bufferSize, sampleCount limit)
Definition: Types.h:177
double mThresholdDb
Definition: AutoDuck.h:76
char * samplePtr
Definition: Types.h:202
A Track that contains audio waveform data.
Definition: WaveTrack.h:60
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:101
bool ApplyDuckFade(int trackNum, WaveTrack *t, double t0, double t1)
Definition: AutoDuck.cpp:521
a struct that holds a start and end time.
Definition: AutoDuck.cpp:62
int GetNumWaveTracks()
Definition: Effect.h:343
sampleCount TimeToLongSamples(double t0) const
Convert correctly between an (absolute) time in seconds and a number of samples.
Definition: WaveTrack.cpp:1843
bool Get(samplePtr buffer, sampleFormat format, sampleCount start, size_t len, fillFormat fill=fillZero, bool mayThrow=true, sampleCount *pNumCopied=nullptr) const
Definition: WaveTrack.cpp:1971
double LongSamplesToTime(sampleCount pos) const
Convert correctly between an number of samples and an (absolute) time in seconds. ...
Definition: WaveTrack.cpp:1848
const WaveTrack * mControlTrack
Definition: AutoDuck.h:79
const double MIN_Threshold_Linear DB_TO_LINEAR(MIN_Threshold_dB)
double mOuterFadeDownLen
Definition: AutoDuck.h:74
std::shared_ptr< TrackList > mOutputTracks
Definition: Effect.h:459
double mT0
Definition: Effect.h:460
static const size_t kBufSize
Definition: AutoDuck.cpp:55
bool EffectAutoDuck::SetAutomationParameters ( CommandParameters parms)
overridevirtual

Implements EffectClientInterface.

Definition at line 152 of file AutoDuck.cpp.

References mDuckAmountDb, mInnerFadeDownLen, mInnerFadeUpLen, mMaximumPause, mOuterFadeDownLen, mOuterFadeUpLen, mThresholdDb, and ReadAndVerifyDouble.

153 {
154  ReadAndVerifyDouble(DuckAmountDb);
155  ReadAndVerifyDouble(InnerFadeDownLen);
156  ReadAndVerifyDouble(InnerFadeUpLen);
157  ReadAndVerifyDouble(OuterFadeDownLen);
158  ReadAndVerifyDouble(OuterFadeUpLen);
159  ReadAndVerifyDouble(ThresholdDb);
160  ReadAndVerifyDouble(MaximumPause);
161 
162  mDuckAmountDb = DuckAmountDb;
163  mInnerFadeDownLen = InnerFadeDownLen;
164  mInnerFadeUpLen = InnerFadeUpLen;
165  mOuterFadeDownLen = OuterFadeDownLen;
166  mOuterFadeUpLen = OuterFadeUpLen;
167  mThresholdDb = ThresholdDb;
168  mMaximumPause = MaximumPause;
169 
170  return true;
171 }
double mInnerFadeDownLen
Definition: AutoDuck.h:72
double mMaximumPause
Definition: AutoDuck.h:77
double mOuterFadeUpLen
Definition: AutoDuck.h:75
double mDuckAmountDb
Definition: AutoDuck.h:71
double mThresholdDb
Definition: AutoDuck.h:76
#define ReadAndVerifyDouble(name)
Definition: Effect.h:798
double mOuterFadeDownLen
Definition: AutoDuck.h:74
double mInnerFadeUpLen
Definition: AutoDuck.h:73
bool EffectAutoDuck::Startup ( )
overridevirtual

Reimplemented from Effect.

Definition at line 175 of file AutoDuck.cpp.

References Effect::GetCurrentSettingsGroup(), gPrefs, mDuckAmountDb, mInnerFadeDownLen, mInnerFadeUpLen, mMaximumPause, mOuterFadeDownLen, mOuterFadeUpLen, mThresholdDb, and Effect::SaveUserPreset().

176 {
177  wxString base = wxT("/Effects/AutoDuck/");
178 
179  // Migrate settings from 2.1.0 or before
180 
181  // Already migrated, so bail
182  if (gPrefs->Exists(base + wxT("Migrated")))
183  {
184  return true;
185  }
186 
187  // Load the old "current" settings
188  if (gPrefs->Exists(base))
189  {
190  gPrefs->Read(base + wxT("DuckAmountDb"), &mDuckAmountDb, DEF_DuckAmountDb);
191  gPrefs->Read(base + wxT("InnerFadeDownLen"), &mInnerFadeDownLen, DEF_InnerFadeDownLen);
192  gPrefs->Read(base + wxT("InnerFadeUpLen"), &mInnerFadeUpLen, DEF_InnerFadeUpLen);
193  gPrefs->Read(base + wxT("OuterFadeDownLen"), &mOuterFadeDownLen, DEF_OuterFadeDownLen);
194  gPrefs->Read(base + wxT("OuterFadeUpLen"), &mOuterFadeUpLen, DEF_OuterFadeUpLen);
195  gPrefs->Read(base + wxT("ThresholdDb"), &mThresholdDb, DEF_ThresholdDb);
196  gPrefs->Read(base + wxT("MaximumPause"), &mMaximumPause, DEF_MaximumPause);
197 
199 
200  // Do not migrate again
201  gPrefs->Write(base + wxT("Migrated"), true);
202  gPrefs->Flush();
203  }
204 
205  return true;
206 }
AudacityPrefs * gPrefs
Definition: Prefs.cpp:73
bool SaveUserPreset(const wxString &name) override
Definition: Effect.cpp:602
wxString GetCurrentSettingsGroup() override
Definition: Effect.cpp:803
double mInnerFadeDownLen
Definition: AutoDuck.h:72
double mMaximumPause
Definition: AutoDuck.h:77
double mOuterFadeUpLen
Definition: AutoDuck.h:75
double mDuckAmountDb
Definition: AutoDuck.h:71
double mThresholdDb
Definition: AutoDuck.h:76
double mOuterFadeDownLen
Definition: AutoDuck.h:74
double mInnerFadeUpLen
Definition: AutoDuck.h:73
bool EffectAutoDuck::TransferDataFromWindow ( )
overridevirtual

Reimplemented from Effect.

Definition at line 508 of file AutoDuck.cpp.

References Effect::mUIParent.

509 {
510  if (!mUIParent->Validate() || !mUIParent->TransferDataFromWindow())
511  {
512  return false;
513  }
514 
515  return true;
516 }
wxWindow * mUIParent
Definition: Effect.h:472
bool EffectAutoDuck::TransferDataToWindow ( )
overridevirtual

Reimplemented from Effect.

Definition at line 496 of file AutoDuck.cpp.

References mPanel, and Effect::mUIParent.

Referenced by EffectAutoDuckPanel::OnMotion().

497 {
498  if (!mUIParent->TransferDataToWindow())
499  {
500  return false;
501  }
502 
503  mPanel->Refresh(false);
504 
505  return true;
506 }
wxWindow * mUIParent
Definition: Effect.h:472
EffectAutoDuckPanel * mPanel
Definition: AutoDuck.h:88

Friends And Related Function Documentation

friend class EffectAutoDuckPanel
friend

Definition at line 92 of file AutoDuck.h.

Referenced by PopulateOrExchange().

Member Data Documentation

const WaveTrack* EffectAutoDuck::mControlTrack
private

Definition at line 79 of file AutoDuck.h.

Referenced by End(), Init(), and Process().

double EffectAutoDuck::mDuckAmountDb
private
wxTextCtrl* EffectAutoDuck::mDuckAmountDbBox
private

Definition at line 81 of file AutoDuck.h.

Referenced by EffectAutoDuckPanel::OnPaint(), and PopulateOrExchange().

double EffectAutoDuck::mInnerFadeDownLen
private
wxTextCtrl* EffectAutoDuck::mInnerFadeDownLenBox
private

Definition at line 82 of file AutoDuck.h.

Referenced by EffectAutoDuckPanel::OnPaint(), and PopulateOrExchange().

double EffectAutoDuck::mInnerFadeUpLen
private
wxTextCtrl* EffectAutoDuck::mInnerFadeUpLenBox
private

Definition at line 83 of file AutoDuck.h.

Referenced by EffectAutoDuckPanel::OnPaint(), and PopulateOrExchange().

double EffectAutoDuck::mMaximumPause
private
wxTextCtrl* EffectAutoDuck::mMaximumPauseBox
private

Definition at line 87 of file AutoDuck.h.

Referenced by PopulateOrExchange().

double EffectAutoDuck::mOuterFadeDownLen
private
wxTextCtrl* EffectAutoDuck::mOuterFadeDownLenBox
private

Definition at line 84 of file AutoDuck.h.

Referenced by EffectAutoDuckPanel::OnPaint(), and PopulateOrExchange().

double EffectAutoDuck::mOuterFadeUpLen
private
wxTextCtrl* EffectAutoDuck::mOuterFadeUpLenBox
private

Definition at line 85 of file AutoDuck.h.

Referenced by EffectAutoDuckPanel::OnPaint(), and PopulateOrExchange().

EffectAutoDuckPanel* EffectAutoDuck::mPanel
private

Definition at line 88 of file AutoDuck.h.

Referenced by OnValueChanged(), PopulateOrExchange(), and TransferDataToWindow().

double EffectAutoDuck::mThresholdDb
private
wxTextCtrl* EffectAutoDuck::mThresholdDbBox
private

Definition at line 86 of file AutoDuck.h.

Referenced by PopulateOrExchange().


The documentation for this class was generated from the following files: