Audacity  2.2.2
Enumerations | Functions | Variables
ToneGen.cpp File Reference
#include "../Audacity.h"
#include "ToneGen.h"
#include <math.h>
#include <float.h>
#include <wx/intl.h>
#include <wx/valgen.h>
#include "../Project.h"
#include "../ShuttleGui.h"
#include "../widgets/NumericTextCtrl.h"
#include "../widgets/valnum.h"

Go to the source code of this file.

Enumerations

enum  kInterpolations {
  kBspline, kCosine, kCubic, nInterpolations,
  kLinear, kLogarithmic, nInterpolations
}
 
enum  kWaveforms {
  kSine, kSquare, kSawtooth, kSquareNoAlias,
  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 IdentInterfaceSymbol kInterStrings [nInterpolations]
 
static const IdentInterfaceSymbol kWaveStrings [nWaveforms]
 

Enumeration Type Documentation

Enumerator
kBspline 
kCosine 
kCubic 
nInterpolations 
kLinear 
kLogarithmic 
nInterpolations 

Definition at line 35 of file ToneGen.cpp.

enum kWaveforms
Enumerator
kSine 
kSquare 
kSawtooth 
kSquareNoAlias 
nWaveforms 

Definition at line 49 of file ToneGen.cpp.

50 {
51  kSine,
52  kSquare,
53  kSawtooth,
56 };

Function Documentation

END_EVENT_TABLE ( )
Param ( StartFreq  ,
double  ,
wxT("StartFreq")  ,
440.  0,
1.  0,
DBL_MAX  ,
 
)
Param ( EndFreq  ,
double  ,
wxT("EndFreq")  ,
1320.  0,
1.  0,
DBL_MAX  ,
 
)
Param ( StartAmp  ,
double  ,
wxT("StartAmp")  ,
0.  8,
0.  0,
1.  0,
 
)
Param ( EndAmp  ,
double  ,
wxT("EndAmp")  ,
0.  1,
0.  0,
1.  0,
 
)
Param ( Frequency  ,
double  ,
wxT("Frequency")  ,
440.  0,
1.  0,
DBL_MAX  ,
 
)
Param ( Amplitude  ,
double  ,
wxT("Amplitude")  ,
0.  8,
0.  0,
1.  0,
 
)
Param ( Waveform  ,
int  ,
wxT("Waveform")  ,
,
,
nWaveforms 1,
 
)
Param ( Interp  ,
int  ,
wxT("Interpolation")  ,
,
,
nInterpolations 1,
 
)

Variable Documentation

const IdentInterfaceSymbol kInterStrings[nInterpolations]
static
Initial value:
=
{
{ XO("Linear") },
{ XO("Logarithmic") }
}
#define XO(s)
Definition: Internat.h:33

Definition at line 42 of file ToneGen.cpp.

const IdentInterfaceSymbol kWaveStrings[nWaveforms]
static
Initial value:
=
{
{ XO("Sine") },
{ XO("Square") },
{ XO("Sawtooth") },
{ wxT("SquareNoAlias"), XO("Square, no alias") }
}
#define XO(s)
Definition: Internat.h:33

Definition at line 58 of file ToneGen.cpp.