Audacity 3.2.0
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
AmplifyBase Class Reference

#include <AmplifyBase.h>

Inheritance diagram for AmplifyBase:
[legend]
Collaboration diagram for AmplifyBase:
[legend]

Classes

struct  Instance
 

Public Member Functions

 AmplifyBase ()
 
virtual ~AmplifyBase () override
 
ComponentInterfaceSymbol GetSymbol () const override
 
EffectType GetType () const override
 Type determines how it behaves. More...
 
OptionalMessage LoadFactoryDefaults (EffectSettings &settings) const override
 
OptionalMessage DoLoadFactoryDefaults (EffectSettings &settings)
 
unsigned GetAudioInCount () const override
 How many input buffers to allocate at once. More...
 
unsigned GetAudioOutCount () const override
 How many output buffers to allocate at once. More...
 
size_t ProcessBlock (EffectSettings &settings, const float *const *inBlock, float *const *outBlock, size_t blockLen) override
 Called for destructive effect computation. More...
 
bool Init () override
 
std::any BeginPreview (const EffectSettings &settings) override
 Called when Preview() starts, to allow temporary effect state changes. More...
 
- Public Member Functions inherited from StatefulPerTrackEffect
 ~StatefulPerTrackEffect () override
 
std::shared_ptr< EffectInstanceMakeInstance () const override
 Make an object maintaining short-term state of an Effect. More...
 
size_t SetBlockSize (size_t maxBlockSize) override
 
size_t GetBlockSize () const override
 
bool ProcessInitialize (EffectSettings &settings, double sampleRate, ChannelNames chanMap=nullptr) override
 
bool ProcessFinalize () noexcept override
 
virtual size_t ProcessBlock (EffectSettings &settings, const float *const *inBlock, float *const *outBlock, size_t blockLen)=0
 Called for destructive effect computation. More...
 
- Public Member Functions inherited from StatefulEffectBase
virtual bool Init ()
 
virtual bool Process (EffectInstance &instance, EffectSettings &settings)=0
 
virtual bool RealtimeInitialize (EffectSettings &settings, double sampleRate)
 
virtual bool RealtimeAddProcessor (EffectSettings &settings, EffectOutputs *pOutputs, unsigned numChannels, float sampleRate)
 
virtual bool RealtimeSuspend ()
 
virtual bool RealtimeResume ()
 
virtual bool RealtimeProcessStart (MessagePackage &package)
 settings are possibly changed, since last call, by an asynchronous dialog More...
 
virtual size_t RealtimeProcess (size_t group, EffectSettings &settings, const float *const *inBuf, float *const *outBuf, size_t numSamples)
 
virtual bool RealtimeProcessEnd (EffectSettings &settings) noexcept
 settings can be updated to let a dialog change appearance at idle More...
 
virtual bool RealtimeFinalize (EffectSettings &settings) noexcept
 
virtual size_t SetBlockSize (size_t maxBlockSize)
 
virtual size_t GetBlockSize () const
 
virtual unsigned GetAudioInCount () const
 How many input buffers to allocate at once. More...
 
virtual unsigned GetAudioOutCount () const
 How many output buffers to allocate at once. More...
 
virtual sampleCount GetLatency () const
 
virtual bool NeedsDither () const
 
virtual bool ProcessInitialize (EffectSettings &settings, double sampleRate, ChannelNames chanMap=nullptr)
 
virtual bool ProcessFinalize () noexcept
 
- Public Member Functions inherited from PerTrackEffect
 ~PerTrackEffect () override
 
- Public Member Functions inherited from Effect
 Effect ()
 
virtual ~Effect ()
 
PluginPath GetPath () const override
 
bool VisitSettings (SettingsVisitor &visitor, EffectSettings &settings) override
 
bool VisitSettings (ConstSettingsVisitor &visitor, const EffectSettings &settings) const override
 
ComponentInterfaceSymbol GetSymbol () const override
 
VendorSymbol GetVendor () const override
 
wxString GetVersion () const override
 
TranslatableString GetDescription () const override
 
EffectFamilySymbol GetFamily () const override
 Report identifier and user-visible name of the effect protocol. More...
 
bool IsInteractive () const override
 Whether the effect needs a dialog for entry of settings. More...
 
bool IsDefault () const override
 Whether the effect sorts "above the line" in the menus. More...
 
RealtimeSince RealtimeSupport () const override
 Since which version of Audacity has the effect supported realtime? More...
 
bool SupportsAutomation () const override
 Whether the effect has any automatable controls. More...
 
bool SaveSettings (const EffectSettings &settings, CommandParameters &parms) const override
 Store settings as keys and values. More...
 
bool LoadSettings (const CommandParameters &parms, EffectSettings &settings) const override
 Restore settings from keys and values. More...
 
OptionalMessage LoadUserPreset (const RegistryPath &name, EffectSettings &settings) const override
 
bool SaveUserPreset (const RegistryPath &name, const EffectSettings &settings) const override
 Save settings in the configuration file as a user-named preset. More...
 
RegistryPaths GetFactoryPresets () const override
 Report names of factory presets. More...
 
OptionalMessage LoadFactoryPreset (int id, EffectSettings &settings) const override
 
OptionalMessage LoadFactoryDefaults (EffectSettings &settings) const override
 
virtual const EffectParameterMethodsParameters () const
 
bool CanExportPresets () const override
 Whether the effect supports export of presets to files, and importing too. More...
 
bool HasOptions () const override
 
const EffectSettingsManagerGetDefinition () const override
 
virtual NumericFormatID GetSelectionFormat ()
 
bool SaveSettingsAsString (const EffectSettings &settings, wxString &parms) const override
 
OptionalMessage LoadSettingsFromString (const wxString &parms, EffectSettings &settings) const override
 
bool IsBatchProcessing () const override
 
void SetBatchProcessing () override
 
void UnsetBatchProcessing () override
 
unsigned TestUIFlags (unsigned mask)
 
bool Delegate (Effect &delegate, EffectSettings &settings, InstanceFinder finder={})
 Re-invoke DoEffect on another Effect object that implements the work. More...
 
- Public Member Functions inherited from EffectBase
 EffectBase ()
 
 ~EffectBase () override
 
bool IsLinearEffect () const
 
bool PreviewsFullSelection () const
 
void SetTracks (TrackList *pTracks)
 
double GetDefaultDuration ()
 
virtual std::any BeginPreview (const EffectSettings &settings)
 Called when Preview() starts, to allow temporary effect state changes. More...
 
bool DoEffect (EffectSettings &settings, const InstanceFinder &finder, double projectRate, TrackList *list, WaveTrackFactory *factory, NotifyingSelectedRegion &selectedRegion, unsigned flags, const EffectSettingsAccessPtr &pAccess) override
 
virtual double CalcPreviewInputLength (const EffectSettings &settings, double previewLength) const =0
 
void CountWaveTracks ()
 
- Public Member Functions inherited from EffectPlugin
EffectPluginoperator= (EffectPlugin &)=delete
 
virtual ~EffectPlugin ()
 
virtual bool HasOptions () const =0
 
virtual bool CanExportPresets () const =0
 Whether the effect supports export of presets to files, and importing too. More...
 
virtual const EffectSettingsManagerGetDefinition () const =0
 
virtual bool SaveSettingsAsString (const EffectSettings &settings, wxString &parms) const =0
 
virtual OptionalMessage LoadSettingsFromString (const wxString &parms, EffectSettings &settings) const =0
 
virtual bool IsBatchProcessing () const =0
 
virtual void SetBatchProcessing ()=0
 
virtual void UnsetBatchProcessing ()=0
 
virtual bool DoEffect (EffectSettings &settings, const InstanceFinder &finder, double projectRate, TrackList *list, WaveTrackFactory *factory, NotifyingSelectedRegion &selectedRegion, unsigned flags, const EffectSettingsAccessPtr &pAccess=nullptr)=0
 
- Public Member Functions inherited from EffectInstanceFactory
virtual ~EffectInstanceFactory ()
 
virtual std::shared_ptr< EffectInstanceMakeInstance () const =0
 Make an object maintaining short-term state of an Effect. More...
 
- Public Member Functions inherited from EffectSettingsManager
virtual ~EffectSettingsManager ()
 
virtual bool VisitSettings (SettingsVisitor &visitor, EffectSettings &settings)
 
virtual bool VisitSettings (ConstSettingsVisitor &visitor, const EffectSettings &settings) const
 
virtual EffectSettings MakeSettings () const
 
virtual bool CopySettingsContents (const EffectSettings &src, EffectSettings &dst) const
 Update one settings object from another. More...
 
virtual std::unique_ptr< EffectOutputsMakeOutputs () const
 Produce an object to hold values to send to effect output meters. More...
 
- Public Member Functions inherited from EffectDefinitionInterface
virtual ~EffectDefinitionInterface ()
 
virtual EffectType GetType () const =0
 Type determines how it behaves. More...
 
virtual EffectType GetClassification () const
 Determines which menu it appears in; default same as GetType(). More...
 
virtual EffectFamilySymbol GetFamily () const =0
 Report identifier and user-visible name of the effect protocol. More...
 
virtual bool IsInteractive () const =0
 Whether the effect needs a dialog for entry of settings. More...
 
virtual bool IsDefault () const =0
 Whether the effect sorts "above the line" in the menus. More...
 
virtual RealtimeSince RealtimeSupport () const =0
 Since which version of Audacity has the effect supported realtime? More...
 
bool SupportsRealtime () const
 
virtual bool SupportsAutomation () const =0
 Whether the effect has any automatable controls. More...
 
virtual bool EnablesDebug () const
 Whether the effect dialog should have a Debug button; default, always false. More...
 
virtual ManualPageID ManualPage () const
 Name of a page in the Audacity alpha manual, default is empty. More...
 
virtual FilePath HelpPage () const
 Fully qualified local help file name, default is empty. More...
 
virtual bool IsHiddenFromMenus () const
 Default is false. More...
 
- Public Member Functions inherited from ComponentInterface
virtual ~ComponentInterface ()
 
virtual PluginPath GetPath () const =0
 
virtual ComponentInterfaceSymbol GetSymbol () const =0
 
virtual VendorSymbol GetVendor () const =0
 
virtual wxString GetVersion () const =0
 
virtual TranslatableString GetDescription () const =0
 
TranslatableString GetName () const
 

Static Public Member Functions

static AmplifyBaseFetchParameters (AmplifyBase &e, EffectSettings &)
 
- Static Public Member Functions inherited from Effect
static EffectFetchParameters (Effect &e, EffectSettings &)
 
- Static Public Member Functions inherited from EffectBase
static std::optional< InstancePointerFindInstance (EffectPlugin &plugin)
 
static InstanceFinder DefaultInstanceFinder (EffectPlugin &plugin)
 
- Static Public Member Functions inherited from EffectDefinitionInterface
static Identifier GetSquashedName (const Identifier &ident)
 A utility that strips spaces and CamelCases a name. More...
 

Static Public Attributes

static const ComponentInterfaceSymbol Symbol { XO("Amplify") }
 
- Static Public Attributes inherited from EffectPlugin
static const wxString kUserPresetIdent = wxT("User Preset:")
 
static const wxString kFactoryPresetIdent = wxT("Factory Preset:")
 
static const wxString kCurrentSettingsIdent = wxT("<Current Settings>")
 
static const wxString kFactoryDefaultsIdent = wxT("<Factory Defaults>")
 

Protected Member Functions

void ClampRatio ()
 
- Protected Member Functions inherited from PerTrackEffect
bool DoPass1 () const
 
bool DoPass2 () const
 
bool Process (EffectInstance &instance, EffectSettings &settings) const
 
std::shared_ptr< EffectOutputTracksMakeOutputTracks ()
 
void DestroyOutputTracks () const
 
- Protected Member Functions inherited from Effect
bool CheckWhetherSkipEffect (const EffectSettings &settings) const override
 Default implementation returns false. More...
 
double CalcPreviewInputLength (const EffectSettings &settings, double previewLength) const override
 Default implementation returns previewLength More...
 
bool TotalProgress (double frac, const TranslatableString &={}) const
 
bool TrackProgress (int whichTrack, double frac, const TranslatableString &={}) const
 
bool TrackGroupProgress (int whichGroup, double frac, const TranslatableString &={}) const
 
int GetNumWaveTracks () const
 
int GetNumWaveGroups () const
 
void GetBounds (const WaveTrack &track, sampleCount *start, sampleCount *len)
 
- Protected Member Functions inherited from EffectBase
virtual bool CheckWhetherSkipEffect (const EffectSettings &settings) const =0
 After Init(), tell whether Process() should be skipped. More...
 
void SetLinearEffectFlag (bool linearEffectFlag)
 
void SetPreviewFullSelectionFlag (bool previewDurationFlag)
 
bool IsPreviewing () const
 
const TrackListinputTracks () const
 
const AudacityProjectFindProject () const
 

Protected Attributes

double mPeak = 1.0
 
double mRatio = 1.0
 
double mRatioClip
 
double mAmp = 0.0
 
double mNewPeak = 1.0
 
bool mCanClip = true
 
- Protected Attributes inherited from PerTrackEffect
sampleCount mSampleCnt {}
 
- Protected Attributes inherited from EffectBase
double mF0 {}
 
double mF1 {}
 
wxArrayString mPresetNames
 
unsigned mUIFlags { 0 }
 

Static Protected Attributes

static constexpr EffectParameter Ratio
 
static constexpr EffectParameter Amp
 
static constexpr EffectParameter Clipping
 

Private Member Functions

const EffectParameterMethodsParameters () const override
 

Additional Inherited Members

- Public Types inherited from StatefulEffectBase
using MessagePackage = EffectInstance::MessagePackage
 
- Public Types inherited from EffectPlugin
using EffectSettingsAccessPtr = std::shared_ptr< EffectSettingsAccess >
 
using InstancePointer = std::shared_ptr< EffectInstanceEx >
 
using InstanceFinder = std::function< std::optional< InstancePointer >(EffectSettings &settings) >
 
- Public Types inherited from EffectDefinitionInterface
enum class  RealtimeSince : unsigned { Never , After_3_1 , Always }
 In which versions of Audacity was an effect realtime capable? More...
 
- Public Attributes inherited from EffectBase
std::shared_ptr< TrackListmTracks {}
 
int mNumTracks {}
 
BasicUI::ProgressDialogmProgress {}
 
double mProjectRate {}
 
WaveTrackFactorymFactory {}
 
double mT0 {}
 
double mT1 {}
 
bool mIsPreview { false }
 

Detailed Description

Definition at line 6 of file AmplifyBase.h.

Constructor & Destructor Documentation

◆ AmplifyBase()

AmplifyBase::AmplifyBase ( )

Definition at line 45 of file AmplifyBase.cpp.

46{
47 mAmp = Amp.def;
48 // Ratio.def == DB_TO_LINEAR(Amp.def)
49 Parameters().Reset(*this);
50 mRatioClip = 0.0;
51 mPeak = 0.0;
52
54}
const EffectParameterMethods & Parameters() const override
Definition: AmplifyBase.cpp:8
double mPeak
Definition: AmplifyBase.h:49
double mAmp
Definition: AmplifyBase.h:54
double mRatioClip
Definition: AmplifyBase.h:52
static constexpr EffectParameter Amp
Definition: AmplifyBase.h:66
void SetLinearEffectFlag(bool linearEffectFlag)
Definition: EffectBase.cpp:210
virtual void Reset(Effect &effect) const =0
const Type def
Default value.

References Amp, EffectParameter< Structure, Member, Type, Value >::def, mAmp, mPeak, mRatioClip, Parameters(), EffectParameterMethods::Reset(), and EffectBase::SetLinearEffectFlag().

Referenced by Parameters().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~AmplifyBase()

AmplifyBase::~AmplifyBase ( )
overridevirtual

Definition at line 56 of file AmplifyBase.cpp.

57{
58}

Member Function Documentation

◆ BeginPreview()

std::any AmplifyBase::BeginPreview ( const EffectSettings settings)
overridevirtual

Called when Preview() starts, to allow temporary effect state changes.

default returns a null

Returns
will undo its effects in its destructor before Preview() finishes

Reimplemented from EffectBase.

Definition at line 144 of file AmplifyBase.cpp.

145{
146 return { std::pair { CopyableValueRestorer(mRatio),
148}
double mRatio
Definition: AmplifyBase.h:51

References mPeak, and mRatio.

◆ ClampRatio()

void AmplifyBase::ClampRatio ( )
protected

Definition at line 150 of file AmplifyBase.cpp.

151{
152 // limit range of gain
153 double dBInit = LINEAR_TO_DB(mRatio);
154 double dB = std::clamp<double>(dBInit, Amp.min, Amp.max);
155 if (dB != dBInit)
156 mRatio = DB_TO_LINEAR(dB);
157
160}
#define LINEAR_TO_DB(x)
Definition: MemoryX.h:339
#define DB_TO_LINEAR(x)
Definition: MemoryX.h:338
double mNewPeak
Definition: AmplifyBase.h:55
const Type min
Minimum value.
const Type max
Maximum value.

References Amp, DB_TO_LINEAR, LINEAR_TO_DB, mAmp, EffectParameter< Structure, Member, Type, Value >::max, EffectParameter< Structure, Member, Type, Value >::min, mNewPeak, mPeak, and mRatio.

Referenced by DoLoadFactoryDefaults(), EffectAmplify::PopulateOrExchange(), and EffectAmplify::TransferDataFromWindow().

Here is the caller graph for this function:

◆ DoLoadFactoryDefaults()

OptionalMessage AmplifyBase::DoLoadFactoryDefaults ( EffectSettings settings)

Definition at line 98 of file AmplifyBase.cpp.

99{
100 Init();
101
102 mRatioClip = 0.0;
103 if (mPeak > 0.0)
104 {
105 mRatio = 1.0 / mPeak;
107 }
108 else
109 {
110 mRatio = 1.0;
111 }
112 mCanClip = false;
113
114 ClampRatio();
115 return { nullptr };
116}
bool Init() override
void ClampRatio()
bool mCanClip
Definition: AmplifyBase.h:56

References ClampRatio(), Init(), mCanClip, mPeak, mRatio, and mRatioClip.

Referenced by LoadFactoryDefaults().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FetchParameters()

static AmplifyBase * AmplifyBase::FetchParameters ( AmplifyBase e,
EffectSettings  
)
inlinestatic

Definition at line 9 of file AmplifyBase.h.

10 {
11 return &e;
12 }

◆ GetAudioInCount()

unsigned AmplifyBase::GetAudioInCount ( ) const
overridevirtual

How many input buffers to allocate at once.

If the instance processes channels independently, this can return 1 The result is not necessarily well defined before RealtimeInitialize Default implementation returns 0

Reimplemented from StatefulEffectBase.

Definition at line 70 of file AmplifyBase.cpp.

71{
72 return 1;
73}

◆ GetAudioOutCount()

unsigned AmplifyBase::GetAudioOutCount ( ) const
overridevirtual

How many output buffers to allocate at once.

The result is not necessarily well defined before RealtimeInitialize Default implementation returns 0

Reimplemented from StatefulEffectBase.

Definition at line 75 of file AmplifyBase.cpp.

76{
77 return 1;
78}

◆ GetSymbol()

ComponentInterfaceSymbol AmplifyBase::GetSymbol ( ) const
overridevirtual

Implements ComponentInterface.

Definition at line 60 of file AmplifyBase.cpp.

61{
62 return Symbol;
63}
static const ComponentInterfaceSymbol Symbol
Definition: AmplifyBase.h:13

References Symbol.

◆ GetType()

EffectType AmplifyBase::GetType ( ) const
overridevirtual

Type determines how it behaves.

Implements EffectDefinitionInterface.

Definition at line 65 of file AmplifyBase.cpp.

66{
67 return EffectTypeProcess;
68}
@ EffectTypeProcess

References EffectTypeProcess.

◆ Init()

bool AmplifyBase::Init ( )
overridevirtual

Default implementation does nothing, returns true

Reimplemented from StatefulEffectBase.

Definition at line 120 of file AmplifyBase.cpp.

121{
122 auto range = inputTracks()->Selected<const WaveTrack>();
123 bool hasPitchOrSpeed =
124 any_of(begin(range), end(range), [this](auto* pTrack) {
125 return TimeStretching::HasPitchOrSpeed(*pTrack, mT0, mT1);
126 });
127 if (hasPitchOrSpeed)
128 range = MakeOutputTracks()->Get().Selected<const WaveTrack>();
129 mPeak = 0.0;
130 for (auto t : range)
131 {
132 for (const auto pChannel : t->Channels())
133 {
134 auto pair =
135 WaveChannelUtilities::GetMinMax(*pChannel, mT0, mT1); // may throw
136 const float min = pair.first, max = pair.second;
137 const float newpeak = std::max(fabs(min), fabs(max));
138 mPeak = std::max<double>(mPeak, newpeak);
139 }
140 }
141 return true;
142}
int min(int a, int b)
double mT1
Definition: EffectBase.h:123
const TrackList * inputTracks() const
Definition: EffectBase.h:102
double mT0
Definition: EffectBase.h:122
std::shared_ptr< EffectOutputTracks > MakeOutputTracks()
auto Selected() -> TrackIterRange< TrackType >
Definition: Track.h:967
A Track that contains audio waveform data.
Definition: WaveTrack.h:203
WAVE_TRACK_API bool HasPitchOrSpeed(const WaveTrack &track, double t0, double t1)
WAVE_TRACK_API std::pair< float, float > GetMinMax(const WaveChannel &channel, double t0, double t1, bool mayThrow=true)
const char * end(const char *str) noexcept
Definition: StringUtils.h:106
const char * begin(const char *str) noexcept
Definition: StringUtils.h:101

References details::begin(), details::end(), WaveChannelUtilities::GetMinMax(), TimeStretching::HasPitchOrSpeed(), EffectBase::inputTracks(), PerTrackEffect::MakeOutputTracks(), min(), mPeak, EffectBase::mT0, EffectBase::mT1, and TrackList::Selected().

Referenced by DoLoadFactoryDefaults().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadFactoryDefaults()

OptionalMessage AmplifyBase::LoadFactoryDefaults ( EffectSettings settings) const
overridevirtual

Change settings back to "factory default"

Returns
nullopt for failure

Implements EffectSettingsManager.

Definition at line 92 of file AmplifyBase.cpp.

93{
94 // To do: externalize state so const_cast isn't needed
95 return const_cast<AmplifyBase&>(*this).DoLoadFactoryDefaults(settings);
96}
static Settings & settings()
Definition: TrackInfo.cpp:51
OptionalMessage DoLoadFactoryDefaults(EffectSettings &settings)
Definition: AmplifyBase.cpp:98

References DoLoadFactoryDefaults(), and settings().

Here is the call graph for this function:

◆ Parameters()

const EffectParameterMethods & AmplifyBase::Parameters ( ) const
overrideprivatevirtual

Reimplemented from Effect.

Definition at line 8 of file AmplifyBase.cpp.

9{
10 static CapturedParameters<
12 // Interactive case
14 parameters;
15
16 static CapturedParameters<AmplifyBase, Ratio> batchParameters {
17 // If invoking Amplify from a macro, mCanClip is not a parameter
18 // but is always true
19 [](AmplifyBase&, EffectSettings&, AmplifyBase& e, bool) {
20 e.mCanClip = true;
21 return true;
22 },
23 };
24
25 // Parameters differ depending on batch mode. Option to disable clipping
26 // is interactive only.
28 return batchParameters;
29 else
30 return parameters;
31}
static constexpr EffectParameter Ratio
Definition: AmplifyBase.h:62
static constexpr EffectParameter Clipping
Definition: AmplifyBase.h:69
Generates EffectParameterMethods overrides from variadic template arguments.
bool IsBatchProcessing() const override
Definition: Effect.cpp:295
Externalized state of a plug-in.

References AmplifyBase(), Clipping, Effect::IsBatchProcessing(), and Ratio.

Referenced by AmplifyBase().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProcessBlock()

size_t AmplifyBase::ProcessBlock ( EffectSettings settings,
const float *const *  inBlock,
float *const *  outBlock,
size_t  blockLen 
)
overridevirtual

Called for destructive effect computation.

Implements StatefulPerTrackEffect.

Definition at line 80 of file AmplifyBase.cpp.

83{
84 for (decltype(blockLen) i = 0; i < blockLen; i++)
85 {
86 outBlock[0][i] = inBlock[0][i] * mRatio;
87 }
88
89 return blockLen;
90}

References mRatio.

Member Data Documentation

◆ Amp

constexpr EffectParameter AmplifyBase::Amp
staticconstexprprotected

◆ Clipping

constexpr EffectParameter AmplifyBase::Clipping
staticconstexprprotected
Initial value:
{
&AmplifyBase::mCanClip, L"AllowClipping", false, false, true, 1
}

Definition at line 69 of file AmplifyBase.h.

Referenced by Parameters().

◆ mAmp

double AmplifyBase::mAmp = 0.0
protected

◆ mCanClip

bool AmplifyBase::mCanClip = true
protected

◆ mNewPeak

double AmplifyBase::mNewPeak = 1.0
protected

◆ mPeak

double AmplifyBase::mPeak = 1.0
protected

◆ mRatio

double AmplifyBase::mRatio = 1.0
protected

◆ mRatioClip

double AmplifyBase::mRatioClip
protected

◆ Ratio

constexpr EffectParameter AmplifyBase::Ratio
staticconstexprprotected
Initial value:
{
&AmplifyBase::mRatio, L"Ratio", 0.9f, 0.003162f, 316.227766f, 1.0f
}

Definition at line 62 of file AmplifyBase.h.

Referenced by Parameters().

◆ Symbol

const ComponentInterfaceSymbol AmplifyBase::Symbol { XO("Amplify") }
static

Definition at line 13 of file AmplifyBase.h.

Referenced by GetSymbol().


The documentation for this class was generated from the following files: