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

Go to the source code of this file.

Namespaces

 anonymous_namespace{ToneGen.cpp}
 

Enumerations

enum  kInterpolations {
  kBspline, kCosine, kCubic, nInterpolations,
  kLinear, kLogarithmic, nInterpolations
}
 
enum  kWaveforms {
  kSine, kSquare, kSawtooth, kSquareNoAlias,
  kTriangle, nWaveforms
}
 

Functions

 Param (StartFreq, double, wxT("StartFreq"), 440.0, 1.0, DBL_MAX, 1)
 
 Param (EndFreq, double, wxT("EndFreq"), 1320.0, 1.0, DBL_MAX, 1)
 
 Param (StartAmp, double, wxT("StartAmp"), 0.8, 0.0, 1.0, 1)
 
 Param (EndAmp, double, wxT("EndAmp"), 0.1, 0.0, 1.0, 1)
 
 Param (Frequency, double, wxT("Frequency"), 440.0, 1.0, DBL_MAX, 1)
 
 Param (Amplitude, double, wxT("Amplitude"), 0.8, 0.0, 1.0, 1)
 
 Param (Waveform, int, wxT("Waveform"), 0, 0, nWaveforms - 1, 1)
 
 Param (Interp, int, wxT("Interpolation"), 0, 0, nInterpolations - 1, 1)
 
 END_EVENT_TABLE ()
 

Variables

static const EnumValueSymbol kInterStrings [nInterpolations]
 
static const EnumValueSymbol kWaveStrings [nWaveforms]
 
BuiltinEffectsModule::Registration< EffectChirpanonymous_namespace{ToneGen.cpp}::reg
 
BuiltinEffectsModule::Registration< EffectToneanonymous_namespace{ToneGen.cpp}::reg2
 

Enumeration Type Documentation

◆ kInterpolations

Enumerator
kBspline 
kCosine 
kCubic 
nInterpolations 
kLinear 
kLogarithmic 
nInterpolations 

Definition at line 39 of file ToneGen.cpp.

40 {
41  kLinear,
44 };

◆ kWaveforms

enum kWaveforms
Enumerator
kSine 
kSquare 
kSawtooth 
kSquareNoAlias 
kTriangle 
nWaveforms 

Definition at line 53 of file ToneGen.cpp.

54 {
55  kSine,
56  kSquare,
57  kSawtooth,
59  kTriangle,
61 };

Function Documentation

◆ END_EVENT_TABLE()

END_EVENT_TABLE ( )

◆ Param() [1/8]

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

◆ Param() [2/8]

Param ( EndAmp  ,
double  ,
wxT("EndAmp")  ,
0.  1,
0.  0,
1.  0,
 
)

◆ Param() [3/8]

Param ( EndFreq  ,
double  ,
wxT("EndFreq")  ,
1320.  0,
1.  0,
DBL_MAX  ,
 
)

◆ Param() [4/8]

Param ( Frequency  ,
double  ,
wxT("Frequency")  ,
440.  0,
1.  0,
DBL_MAX  ,
 
)

◆ Param() [5/8]

Param ( Interp  ,
int  ,
wxT("Interpolation")  ,
,
,
nInterpolations 1,
 
)

◆ Param() [6/8]

Param ( StartAmp  ,
double  ,
wxT("StartAmp")  ,
0.  8,
0.  0,
1.  0,
 
)

◆ Param() [7/8]

Param ( StartFreq  ,
double  ,
wxT("StartFreq")  ,
440.  0,
1.  0,
DBL_MAX  ,
 
)

◆ Param() [8/8]

Param ( Waveform  ,
int  ,
wxT("Waveform")  ,
,
,
nWaveforms 1,
 
)

Variable Documentation

◆ kInterStrings

const EnumValueSymbol kInterStrings[nInterpolations]
static

◆ kWaveStrings

const EnumValueSymbol kWaveStrings[nWaveforms]
static
Initial value:
=
{
{ XO("Sine") },
{ XO("Square") },
{ XO("Sawtooth") },
{ XO("Square, no alias") },
{ XC("Triangle", "waveform") }
}

Definition at line 63 of file ToneGen.cpp.

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

kSquareNoAlias
@ kSquareNoAlias
Definition: ToneGen.cpp:58
XO
#define XO(s)
Definition: Internat.h:31
XC
#define XC(s, c)
Definition: Internat.h:37
kSquare
@ kSquare
Definition: ToneGen.cpp:56
kLinear
@ kLinear
Definition: ToneGen.cpp:41
nWaveforms
@ nWaveforms
Definition: ToneGen.cpp:60
kTriangle
@ kTriangle
Definition: ToneGen.cpp:59
kSine
@ kSine
Definition: ToneGen.cpp:55
nInterpolations
@ nInterpolations
Definition: ToneGen.cpp:43
kSawtooth
@ kSawtooth
Definition: ToneGen.cpp:57
kLogarithmic
@ kLogarithmic
Definition: ToneGen.cpp:42