Audacity  3.0.3
Noise.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  Noise.h
6 
7  Dominic Mazzoni
8 
9  An effect to add white noise.
10 
11 **********************************************************************/
12 
13 #ifndef __AUDACITY_EFFECT_NOISE__
14 #define __AUDACITY_EFFECT_NOISE__
15 
16 #include "Effect.h"
17 
18 class NumericTextCtrl;
19 class ShuttleGui;
20 
21 class EffectNoise final : public Effect
22 {
23 public:
25 
26  EffectNoise();
27  virtual ~EffectNoise();
28 
29  // ComponentInterface implementation
30 
33  ManualPageID ManualPage() override;
34 
35  // EffectDefinitionInterface implementation
36 
37  EffectType GetType() override;
38 
39  // EffectClientInterface implementation
40 
41  unsigned GetAudioOutCount() override;
42  size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override;
43  bool DefineParams( ShuttleParams & S ) override;
44  bool GetAutomationParameters(CommandParameters & parms) override;
45  bool SetAutomationParameters(CommandParameters & parms) override;
46 
47  // Effect implementation
48 
49  bool Startup() override;
50  void PopulateOrExchange(ShuttleGui & S) override;
51  bool TransferDataToWindow() override;
52  bool TransferDataFromWindow() override;
53 
54 private:
55  // EffectNoise implementation
56 
57 private:
58  int mType;
59  double mAmp;
60 
61  float y, z, buf0, buf1, buf2, buf3, buf4, buf5, buf6;
62 
64 };
65 
66 #endif
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
CommandParameters
CommandParameters, derived from wxFileConfig, is essentially doing the same things as the Shuttle cla...
Definition: EffectAutomationParameters.h:67
EffectNoise::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition: Noise.cpp:232
EffectNoise::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: Noise.cpp:274
EffectNoise::buf2
float buf2
Definition: Noise.h:61
EffectNoise::buf0
float buf0
Definition: Noise.h:61
EffectNoise::TransferDataToWindow
bool TransferDataToWindow() override
Definition: Noise.cpp:262
Effect.h
Effect
Base class for many of the effects in Audacity.
Definition: Effect.h:72
EffectNoise::GetType
EffectType GetType() override
Definition: Noise.cpp:101
ShuttleParams
Shuttle that deals with parameters. This is a base class with lots of virtual functions that do nothi...
Definition: Shuttle.h:62
EffectNoise::DefineParams
bool DefineParams(ShuttleParams &S) override
Definition: Noise.cpp:177
EffectNoise::mType
int mType
Definition: Noise.h:58
EffectNoise::EffectNoise
EffectNoise()
Definition: Noise.cpp:68
EffectNoise::y
float y
Definition: Noise.h:61
NumericTextCtrl
Definition: NumericTextCtrl.h:172
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
EffectNoise::mNoiseDurationT
NumericTextCtrl * mNoiseDurationT
Definition: Noise.h:63
EffectNoise::Startup
bool Startup() override
Definition: Noise.cpp:204
EffectNoise::buf1
float buf1
Definition: Noise.h:61
EffectNoise::buf3
float buf3
Definition: Noise.h:61
EffectNoise::ProcessBlock
size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override
Definition: Noise.cpp:113
EffectNoise::GetAutomationParameters
bool GetAutomationParameters(CommandParameters &parms) override
Definition: Noise.cpp:183
EffectNoise::mAmp
double mAmp
Definition: Noise.h:59
EffectNoise::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: Noise.h:24
EffectNoise::buf4
float buf4
Definition: Noise.h:61
EffectNoise::ManualPage
ManualPageID ManualPage() override
Definition: Noise.cpp:94
EffectNoise::GetDescription
TranslatableString GetDescription() override
Definition: Noise.cpp:89
TaggedIdentifier< ManualPageIDTag >
EffectNoise::GetAudioOutCount
unsigned GetAudioOutCount() override
Definition: Noise.cpp:108
EffectNoise::buf5
float buf5
Definition: Noise.h:61
EffectNoise::SetAutomationParameters
bool SetAutomationParameters(CommandParameters &parms) override
Definition: Noise.cpp:191
EffectNoise::z
float z
Definition: Noise.h:61
EffectType
EffectType
Definition: EffectInterface.h:55
EffectNoise::~EffectNoise
virtual ~EffectNoise()
Definition: Noise.cpp:78
EffectNoise
An effect to add white noise.
Definition: Noise.h:22
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631
EffectNoise::buf6
float buf6
Definition: Noise.h:61
EffectNoise::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: Noise.cpp:84