Audacity  3.0.3
Namespaces | Enumerations | Functions | Variables
Noise.cpp File Reference
#include "Noise.h"
#include "LoadEffects.h"
#include <math.h>
#include <wx/choice.h>
#include <wx/intl.h>
#include <wx/textctrl.h>
#include <wx/valgen.h>
#include "Prefs.h"
#include "../Shuttle.h"
#include "../ShuttleGui.h"
#include "../widgets/valnum.h"
#include "../widgets/NumericTextCtrl.h"
Include dependency graph for Noise.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{Noise.cpp}
 

Enumerations

enum  kTypes {
  kWhite, kPink, kBrownian, nTypes,
  kButterworth, kChebyshevTypeI, kChebyshevTypeII, nTypes
}
 

Functions

 Param (Type, int, wxT("Type"), kWhite, 0, nTypes - 1, 1)
 
 Param (Amp, double, wxT("Amplitude"), 0.8, 0.0, 1.0, 1)
 

Variables

static const EnumValueSymbol kTypeStrings [nTypes]
 
BuiltinEffectsModule::Registration< EffectNoiseanonymous_namespace{Noise.cpp}::reg
 

Enumeration Type Documentation

◆ kTypes

enum kTypes
Enumerator
kWhite 
kPink 
kBrownian 
nTypes 
kButterworth 
kChebyshevTypeI 
kChebyshevTypeII 
nTypes 

Definition at line 33 of file Noise.cpp.

34 {
35  kWhite,
36  kPink,
37  kBrownian,
38  nTypes
39 };

Function Documentation

◆ Param() [1/2]

Param ( Amp  ,
double  ,
wxT("Amplitude")  ,
0.  8,
0.  0,
1.  0,
 
)

◆ Param() [2/2]

Param ( Type  ,
int  ,
wxT("Type")  ,
kWhite  ,
,
nTypes 1,
 
)

Variable Documentation

◆ kTypeStrings

const EnumValueSymbol kTypeStrings[nTypes]
static
Initial value:
=
{
{ XC("White", "noise") },
{ XC("Pink", "noise") },
{ XC("Brownian", "noise") }
}

Definition at line 41 of file Noise.cpp.

Referenced by EffectNoise::DefineParams(), EffectNoise::GetAutomationParameters(), EffectNoise::PopulateOrExchange(), and EffectNoise::SetAutomationParameters().

kPink
@ kPink
Definition: Noise.cpp:36
XC
#define XC(s, c)
Definition: Internat.h:37
kBrownian
@ kBrownian
Definition: Noise.cpp:37
kWhite
@ kWhite
Definition: Noise.cpp:35
nTypes
@ nTypes
Definition: Noise.cpp:38