Audacity  2.2.0
AutoDuck.cpp File Reference
#include "../Audacity.h"
#include "AutoDuck.h"
#include <math.h>
#include <float.h>
#include <wx/dcclient.h>
#include <wx/dcmemory.h>
#include <wx/dynarray.h>
#include <wx/intl.h>
#include <wx/msgdlg.h>
#include "../AColor.h"
#include "../AllThemeResources.h"
#include "../Internat.h"
#include "../Prefs.h"
#include "../ShuttleGui.h"
#include "../Theme.h"
#include "../widgets/valnum.h"
#include "../WaveTrack.h"
#include <wx/arrimpl.cpp>

Classes

struct  AutoDuckRegion
 

Macros

#define CONTROL_POINT_REGION   10
 
#define CONTROL_POINT_MIN_MOVE   5
 
#define TEXT_DISTANCE   15
 
#define FADE_DOWN_START   150
 
#define FADE_UP_START   450
 
#define DUCK_AMOUNT_START   50
 
#define FADE_SCALE   40
 
#define DUCK_AMOUNT_SCALE   8
 

Functions

 Param (DuckAmountDb, double, XO("DuckAmountDb"),-12.0,-24.0, 0.0, 1)
 
 Param (InnerFadeDownLen, double, XO("InnerFadeDownLen"), 0.0, 0.0, 3.0, 1)
 
 Param (InnerFadeUpLen, double, XO("InnerFadeUpLen"), 0.0, 0.0, 3.0, 1)
 
 Param (OuterFadeDownLen, double, XO("OuterFadeDownLen"), 0.5, 0.0, 3.0, 1)
 
 Param (OuterFadeUpLen, double, XO("OuterFadeUpLen"), 0.5, 0.0, 3.0, 1)
 
 Param (ThresholdDb, double, XO("ThresholdDb"),-30.0,-100.0, 0.0, 1)
 
 Param (MaximumPause, double, XO("MaximumPause"), 1.0, 0.0, DBL_MAX, 1)
 
 WX_DECLARE_OBJARRAY (AutoDuckRegion, AutoDuckRegionArray)
 
 WX_DEFINE_OBJARRAY (AutoDuckRegionArray)
 
static int GetDistance (const wxPoint &first, const wxPoint &second)
 

Variables

static const size_t kBufSize = 131072u
 
static const size_t kRMSWindowSize = 100u
 

Macro Definition Documentation

#define CONTROL_POINT_MIN_MOVE   5
#define CONTROL_POINT_REGION   10
#define DUCK_AMOUNT_SCALE   8
#define DUCK_AMOUNT_START   50
#define FADE_DOWN_START   150
#define FADE_SCALE   40
#define FADE_UP_START   450
#define TEXT_DISTANCE   15

Function Documentation

static int GetDistance ( const wxPoint &  first,
const wxPoint &  second 
)
static
Param ( DuckAmountDb  ,
double  ,
XO("DuckAmountDb")  ,
-12.  0,
-24.  0,
0.  0,
 
)
Param ( InnerFadeDownLen  ,
double  ,
XO("InnerFadeDownLen")  ,
0.  0,
0.  0,
3.  0,
 
)
Param ( InnerFadeUpLen  ,
double  ,
XO("InnerFadeUpLen")  ,
0.  0,
0.  0,
3.  0,
 
)
Param ( OuterFadeDownLen  ,
double  ,
XO("OuterFadeDownLen")  ,
0.  5,
0.  0,
3.  0,
 
)
Param ( OuterFadeUpLen  ,
double  ,
XO("OuterFadeUpLen")  ,
0.  5,
0.  0,
3.  0,
 
)
Param ( ThresholdDb  ,
double  ,
XO("ThresholdDb")  ,
-30.  0,
-100.  0,
0.  0,
 
)
Param ( MaximumPause  ,
double  ,
XO("MaximumPause")  ,
1.  0,
0.  0,
DBL_MAX  ,
 
)
WX_DECLARE_OBJARRAY ( AutoDuckRegion  ,
AutoDuckRegionArray   
)
WX_DEFINE_OBJARRAY ( AutoDuckRegionArray  )

Variable Documentation

const size_t kBufSize = 131072u
static
const size_t kRMSWindowSize = 100u
static

Referenced by EffectAutoDuck::Process().