Audacity 3.2.0
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
EffectLoudness Class Referencefinal

An Effect to bring the loudness level up to a chosen level. More...

#include <Loudness.h>

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

Public Types

enum  kNormalizeTargets { kLoudness , kRMS , nAlgos }
 
- Public Types inherited from Effect
enum  : long { DefaultMessageBoxStyle = wxOK | wxCENTRE }
 
- Public Types inherited from EffectPlugin
using EffectSettingsAccessPtr = std::shared_ptr< EffectSettingsAccess >
 
- Public Types inherited from EffectDefinitionInterface
enum class  RealtimeSince : unsigned { Never , Since_3_2 , Always }
 In which versions of Audacity was an effect realtime capable? More...
 

Public Member Functions

 EffectLoudness ()
 
virtual ~EffectLoudness ()
 
ComponentInterfaceSymbol GetSymbol () const override
 
TranslatableString GetDescription () const override
 
ManualPageID ManualPage () const override
 Name of a page in the Audacity alpha manual, default is empty. More...
 
EffectType GetType () const override
 Type determines how it behaves. More...
 
bool Process (EffectInstance &instance, EffectSettings &settings) override
 Actually do the effect here. More...
 
std::unique_ptr< EffectUIValidatorPopulateOrExchange (ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access) override
 Add controls to effect panel; always succeeds. More...
 
bool TransferDataToWindow (const EffectSettings &settings) override
 Update controls for the settings. More...
 
- Public Member Functions inherited from StatefulEffect
std::shared_ptr< EffectInstanceMakeInstance () const override
 Make an object maintaining short-term state of an Effect. More...
 
- Public Member Functions inherited from StatefulEffectBase
virtual bool Init ()
 Call once to set up state for whole list of tracks to be processed. More...
 
virtual bool Process (EffectInstance &instance, EffectSettings &settings)=0
 Actually do the effect here. More...
 
virtual bool RealtimeInitialize (EffectSettings &settings, double sampleRate)
 
virtual bool RealtimeAddProcessor (EffectSettings &settings, unsigned numChannels, float sampleRate)
 
virtual bool RealtimeSuspend ()
 
virtual bool RealtimeResume ()
 
virtual bool RealtimeProcessStart (EffectSettings &settings)
 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
 
- 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
 
EffectType GetType () const override
 Type determines how it behaves. More...
 
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...
 
bool LoadUserPreset (const RegistryPath &name, EffectSettings &settings) const override
 Change settings to a user-named preset. More...
 
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...
 
bool LoadFactoryPreset (int id, EffectSettings &settings) const override
 Change settings to the preset whose name is GetFactoryPresets()[id] More...
 
bool LoadFactoryDefaults (EffectSettings &settings) const override
 Change settings back to "factory default". More...
 
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...
 
virtual const EffectParameterMethodsParameters () const
 
int ShowClientInterface (wxWindow &parent, wxDialog &dialog, bool forceModal=false) override
 
std::unique_ptr< EffectUIValidatorPopulateUI (ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access) override
 Adds controls to a panel that is given as the parent window of S More...
 
bool IsGraphicalUI () override
 
bool ValidateUI (EffectSettings &) override
 
bool CloseUI () override
 
bool CanExportPresets () override
 
void ExportPresets (const EffectSettings &settings) const override
 
void ImportPresets (EffectSettings &settings) override
 
bool HasOptions () override
 
void ShowOptions () override
 
const EffectSettingsManagerGetDefinition () const override
 
virtual NumericFormatSymbol GetSelectionFormat ()
 
int ShowHostInterface (wxWindow &parent, const EffectDialogFactory &factory, std::shared_ptr< EffectInstance > &pInstance, EffectSettingsAccess &access, bool forceModal=false) override
 Usually applies factory to self and given access. More...
 
bool SaveSettingsAsString (const EffectSettings &settings, wxString &parms) const override
 
bool LoadSettingsFromString (const wxString &parms, EffectSettings &settings) const override
 
bool IsBatchProcessing () const override
 
void SetBatchProcessing () override
 
void UnsetBatchProcessing () override
 
bool TransferDataToWindow (const EffectSettings &settings) override
 Update controls for the settings. More...
 
bool TransferDataFromWindow (EffectSettings &settings) override
 Update the given settings from controls. More...
 
unsigned TestUIFlags (unsigned mask)
 
bool Delegate (Effect &delegate, EffectSettings &settings)
 Re-invoke DoEffect on another Effect object that implements the work. More...
 
int MessageBox (const TranslatableString &message, long style=DefaultMessageBoxStyle, const TranslatableString &titleStr={}) const
 
bool EnableApply (bool enable=true)
 
wxWindow * GetUIParent ()
 
- Public Member Functions inherited from EffectBase
 EffectBase ()
 
 ~EffectBase () override
 
- Public Member Functions inherited from EffectUIClientInterface
virtual ~EffectUIClientInterface ()
 
virtual int ShowClientInterface (wxWindow &parent, wxDialog &dialog, bool forceModal=false)=0
 
virtual bool IsGraphicalUI ()=0
 
virtual std::unique_ptr< EffectUIValidatorPopulateUI (ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access)=0
 Adds controls to a panel that is given as the parent window of S More...
 
virtual bool CanExportPresets ()=0
 
virtual void ExportPresets (const EffectSettings &settings) const =0
 
virtual void ImportPresets (EffectSettings &settings)=0
 
virtual bool HasOptions ()=0
 
virtual void ShowOptions ()=0
 
- Public Member Functions inherited from EffectPlugin
EffectPluginoperator= (EffectPlugin &)=delete
 
virtual ~EffectPlugin ()
 
virtual const EffectSettingsManagerGetDefinition () const =0
 
virtual int ShowHostInterface (wxWindow &parent, const EffectDialogFactory &factory, std::shared_ptr< EffectInstance > &pInstance, EffectSettingsAccess &access, bool forceModal=false)=0
 Usually applies factory to self and given access. More...
 
virtual void Preview (EffectSettingsAccess &access, bool dryOnly)=0
 
virtual bool SaveSettingsAsString (const EffectSettings &settings, wxString &parms) const =0
 
virtual bool 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, double projectRate, TrackList *list, WaveTrackFactory *factory, NotifyingSelectedRegion &selectedRegion, unsigned flags, wxWindow *pParent=nullptr, const EffectDialogFactory &dialogFactory={}, const EffectSettingsAccessPtr &pAccess=nullptr)=0
 Unfortunately complicated dual-use function. More...
 
virtual bool TransferDataToWindow (const EffectSettings &settings)=0
 Update controls for the settings. More...
 
virtual bool TransferDataFromWindow (EffectSettings &settings)=0
 Update the given settings from controls. More...
 
- 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...
 
virtual unsigned GetAudioInCount () const =0
 How many input buffers to allocate at once. More...
 
virtual unsigned GetAudioOutCount () const =0
 How many output buffers to allocate at once. More...
 
virtual int GetMidiInCount () const
 Function that has not yet found a use. More...
 
virtual int GetMidiOutCount () const
 Function that has not yet found a use. 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...
 
- 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 EffectLoudnessFetchParameters (EffectLoudness &e, EffectSettings &)
 
- Static Public Member Functions inherited from Effect
static EffectFetchParameters (Effect &e, EffectSettings &)
 
static void IncEffectCounter ()
 
- 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("Loudness Normalization") }
 
- 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>")
 

Private Member Functions

void AllocBuffers ()
 
void FreeBuffers ()
 
bool GetTrackRMS (WaveTrack *track, float &rms)
 
bool ProcessOne (TrackIterRange< WaveTrack > range, bool analyse)
 
void LoadBufferBlock (TrackIterRange< WaveTrack > range, sampleCount pos, size_t len)
 
bool AnalyseBufferBlock ()
 
bool ProcessBufferBlock ()
 
void StoreBufferBlock (TrackIterRange< WaveTrack > range, sampleCount pos, size_t len)
 
bool UpdateProgress ()
 
void OnChoice (wxCommandEvent &evt)
 
void OnUpdateUI (wxCommandEvent &evt)
 
void UpdateUI ()
 
const EffectParameterMethodsParameters () const override
 

Private Attributes

bool mStereoInd
 
double mLUFSLevel
 
double mRMSLevel
 
bool mDualMono
 
int mNormalizeTo
 
double mCurT0
 
double mCurT1
 
double mProgressVal
 
int mSteps
 
TranslatableString mProgressMsg
 
double mTrackLen
 
double mCurRate
 
float mMult
 
float mRatio
 
float mRMS [2]
 
std::unique_ptr< EBUR128mLoudnessProcessor
 
wxSimplebook * mBook
 
wxChoice * mChoice
 
wxStaticText * mWarning
 
wxCheckBox * mStereoIndCheckBox
 
wxCheckBox * mDualMonoCheckBox
 
Floats mTrackBuffer [2]
 
size_t mTrackBufferLen
 
size_t mTrackBufferCapacity
 
bool mProcStereo
 

Static Private Attributes

static constexpr EffectParameter StereoInd
 
static constexpr EffectParameter LUFSLevel
 
static constexpr EffectParameter RMSLevel
 
static constexpr EffectParameter DualMono
 
static constexpr EffectParameter NormalizeTo
 

Additional Inherited Members

- Protected Member Functions inherited from Effect
bool EnablePreview (bool enable=true)
 
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...
 
virtual std::unique_ptr< EffectUIValidatorPopulateOrExchange (ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access)
 Add controls to effect panel; always succeeds. 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, const WaveTrack *pRight, sampleCount *start, sampleCount *len)
 
void CopyInputTracks (bool allSyncLockSelected=false)
 
std::shared_ptr< AddedAnalysisTrackAddAnalysisTrack (const wxString &name=wxString())
 
ModifiedAnalysisTrack ModifyAnalysisTrack (const LabelTrack *pOrigTrack, const wxString &name=wxString())
 
TrackAddToOutputTracks (const std::shared_ptr< Track > &t)
 
- Protected Member Functions inherited from EffectBase
void Preview (EffectSettingsAccess &access, bool dryOnly) override
 
bool DoEffect (EffectSettings &settings, double projectRate, TrackList *list, WaveTrackFactory *factory, NotifyingSelectedRegion &selectedRegion, unsigned flags, wxWindow *pParent, const EffectDialogFactory &dialogFactory, const EffectSettingsAccessPtr &pAccess) override
 Unfortunately complicated dual-use function. More...
 
virtual bool CheckWhetherSkipEffect (const EffectSettings &settings) const =0
 After Init(), tell whether Process() should be skipped. More...
 
virtual double CalcPreviewInputLength (const EffectSettings &settings, double previewLength) const =0
 
void SetLinearEffectFlag (bool linearEffectFlag)
 
void SetPreviewFullSelectionFlag (bool previewDurationFlag)
 
bool IsPreviewing () const
 
void IncludeNotSelectedPreviewTracks (bool includeNotSelected)
 
void ReplaceProcessedTracks (const bool bGoodResult)
 
const TrackListinputTracks () const
 
const AudacityProjectFindProject () const
 
virtual bool ValidateUI (EffectSettings &settings)=0
 
virtual bool CloseUI ()=0
 
- Protected Attributes inherited from Effect
wxWeakRef< wxDialog > mHostUIDialog
 This smart pointer tracks the lifetime of the dialog. More...
 
wxWindow * mUIParent {}
 
- Protected Attributes inherited from EffectBase
BasicUI::ProgressDialogmProgress {}
 
double mProjectRate {}
 
WaveTrackFactorymFactory {}
 
std::shared_ptr< TrackListmOutputTracks
 
double mT0 {}
 
double mT1 {}
 
wxArrayString mPresetNames
 
unsigned mUIFlags { 0 }
 
- Protected Attributes inherited from EffectUIClientInterface
friend EffectUIValidator
 
friend DefaultEffectUIValidator
 
- Static Protected Attributes inherited from EffectBase
static int nEffectsDone = 0
 

Detailed Description

An Effect to bring the loudness level up to a chosen level.

Definition at line 31 of file Loudness.h.

Member Enumeration Documentation

◆ kNormalizeTargets

Enumerator
kLoudness 
kRMS 
nAlgos 

Definition at line 34 of file Loudness.h.

35 {
37 kRMS,
38 nAlgos
39 };

Constructor & Destructor Documentation

◆ EffectLoudness()

EffectLoudness::EffectLoudness ( )

Definition at line 61 of file Loudness.cpp.

62{
63 Parameters().Reset(*this);
65}
void SetLinearEffectFlag(bool linearEffectFlag)
Definition: EffectBase.cpp:218
const EffectParameterMethods & Parameters() const override
Definition: Loudness.cpp:42
virtual void Reset(Effect &effect) const =0

References 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:

◆ ~EffectLoudness()

EffectLoudness::~EffectLoudness ( )
virtual

Definition at line 67 of file Loudness.cpp.

68{
69}

Member Function Documentation

◆ AllocBuffers()

void EffectLoudness::AllocBuffers ( )
private

Get required buffer size for the largest whole track and allocate buffers. This reduces the amount of allocations required.

Definition at line 325 of file Loudness.cpp.

326{
328 bool stereoTrackFound = false;
329 double maxSampleRate = 0;
330 mProcStereo = false;
331
332 for(auto track : mOutputTracks->Selected<WaveTrack>() + &Track::Any)
333 {
334 mTrackBufferCapacity = std::max(mTrackBufferCapacity, track->GetMaxBlockSize());
335 maxSampleRate = std::max(maxSampleRate, track->GetRate());
336
337 // There is a stereo track
338 if(track->IsLeader())
339 stereoTrackFound = true;
340 }
341
342 // Initiate a processing buffer. This buffer will (most likely)
343 // be shorter than the length of the track being processed.
345
346 if(!mStereoInd && stereoTrackFound)
348}
void reinit(Integral count, bool initialize=false)
Definition: MemoryX.h:57
std::shared_ptr< TrackList > mOutputTracks
Definition: EffectBase.h:105
size_t mTrackBufferCapacity
Definition: Loudness.h:113
bool mStereoInd
Definition: Loudness.h:86
bool mProcStereo
Definition: Loudness.h:114
Floats mTrackBuffer[2]
Definition: Loudness.h:111
bool Any() const
Definition: Track.cpp:399
A Track that contains audio waveform data.
Definition: WaveTrack.h:57

References Track::Any(), EffectBase::mOutputTracks, mProcStereo, mStereoInd, mTrackBuffer, mTrackBufferCapacity, and ArrayOf< X >::reinit().

Referenced by Process().

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

◆ AnalyseBufferBlock()

bool EffectLoudness::AnalyseBufferBlock ( )
private

Calculates sample sum (for DC) and EBU R128 weighted square sum (for loudness).

Definition at line 438 of file Loudness.cpp.

439{
440 for(size_t i = 0; i < mTrackBufferLen; i++)
441 {
442 mLoudnessProcessor->ProcessSampleFromChannel(mTrackBuffer[0][i], 0);
443 if(mProcStereo)
444 mLoudnessProcessor->ProcessSampleFromChannel(mTrackBuffer[1][i], 1);
445 mLoudnessProcessor->NextSample();
446 }
447
448 if(!UpdateProgress())
449 return false;
450 return true;
451}
bool UpdateProgress()
Definition: Loudness.cpp:479
std::unique_ptr< EBUR128 > mLoudnessProcessor
Definition: Loudness.h:103
size_t mTrackBufferLen
Definition: Loudness.h:112

References mLoudnessProcessor, mProcStereo, mTrackBuffer, mTrackBufferLen, and UpdateProgress().

Referenced by ProcessOne().

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

◆ FetchParameters()

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

Definition at line 42 of file Loudness.h.

42{ return &e; }

◆ FreeBuffers()

void EffectLoudness::FreeBuffers ( )
private

Definition at line 350 of file Loudness.cpp.

351{
352 mTrackBuffer[0].reset();
353 mTrackBuffer[1].reset();
354}

References mTrackBuffer.

Referenced by Process().

Here is the caller graph for this function:

◆ GetDescription()

TranslatableString EffectLoudness::GetDescription ( ) const
overridevirtual

Reimplemented from Effect.

Definition at line 78 of file Loudness.cpp.

79{
80 return XO("Sets the loudness of one or more tracks");
81}
#define XO(s)
Definition: Internat.h:31

References XO.

◆ GetSymbol()

ComponentInterfaceSymbol EffectLoudness::GetSymbol ( ) const
overridevirtual

Reimplemented from Effect.

Definition at line 73 of file Loudness.cpp.

74{
75 return Symbol;
76}
static const ComponentInterfaceSymbol Symbol
Definition: Loudness.h:43

References Symbol.

◆ GetTrackRMS()

bool EffectLoudness::GetTrackRMS ( WaveTrack track,
float &  rms 
)
private

Definition at line 356 of file Loudness.cpp.

357{
358 // set mRMS. No progress bar here as it's fast.
359 float _rms = track->GetRMS(mCurT0, mCurT1); // may throw
360 rms = _rms;
361 return true;
362}
double mCurT1
Definition: Loudness.h:93
double mCurT0
Definition: Loudness.h:92
float GetRMS(double t0, double t1, bool mayThrow=true) const
Definition: WaveTrack.cpp:2079

References WaveTrack::GetRMS(), mCurT0, and mCurT1.

Referenced by Process().

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

◆ GetType()

EffectType EffectLoudness::GetType ( ) const
overridevirtual

Type determines how it behaves.

Reimplemented from Effect.

Definition at line 90 of file Loudness.cpp.

91{
92 return EffectTypeProcess;
93}
@ EffectTypeProcess

References EffectTypeProcess.

◆ LoadBufferBlock()

void EffectLoudness::LoadBufferBlock ( TrackIterRange< WaveTrack range,
sampleCount  pos,
size_t  len 
)
private

Definition at line 423 of file Loudness.cpp.

425{
426 // Get the samples from the track and put them in the buffer
427 int idx = 0;
428 for(auto channel : range)
429 {
430 channel->GetFloats(mTrackBuffer[idx].get(), pos, len );
431 ++idx;
432 }
433 mTrackBufferLen = len;
434}

References mTrackBuffer, and mTrackBufferLen.

Referenced by ProcessOne().

Here is the caller graph for this function:

◆ ManualPage()

ManualPageID EffectLoudness::ManualPage ( ) const
overridevirtual

Name of a page in the Audacity alpha manual, default is empty.

Reimplemented from EffectDefinitionInterface.

Definition at line 83 of file Loudness.cpp.

84{
85 return L"Loudness_Normalization";
86}

◆ OnChoice()

void EffectLoudness::OnChoice ( wxCommandEvent &  evt)
private

Definition at line 486 of file Loudness.cpp.

487{
488 mChoice->GetValidator()->TransferFromWindow();
489 mBook->SetSelection( mNormalizeTo );
490 UpdateUI();
492}
wxCheckBox * mDualMonoCheckBox
Definition: Loudness.h:109
wxSimplebook * mBook
Definition: Loudness.h:105
wxChoice * mChoice
Definition: Loudness.h:106
void UpdateUI()
Definition: Loudness.cpp:499
int mNormalizeTo
Definition: Loudness.h:90

References kLoudness, mBook, mChoice, mDualMonoCheckBox, mNormalizeTo, and UpdateUI().

Referenced by TransferDataToWindow().

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

◆ OnUpdateUI()

void EffectLoudness::OnUpdateUI ( wxCommandEvent &  evt)
private

Definition at line 494 of file Loudness.cpp.

495{
496 UpdateUI();
497}

References UpdateUI().

Here is the call graph for this function:

◆ Parameters()

const EffectParameterMethods & EffectLoudness::Parameters ( ) const
overrideprivatevirtual

Reimplemented from Effect.

Definition at line 42 of file Loudness.cpp.

43{
46 > parameters;
47 return parameters;
48}
Generates EffectParameterMethods overrides from variadic template arguments.
static constexpr EffectParameter StereoInd
Definition: Loudness.h:119
static constexpr EffectParameter LUFSLevel
Definition: Loudness.h:121
static constexpr EffectParameter RMSLevel
Definition: Loudness.h:123
static constexpr EffectParameter DualMono
Definition: Loudness.h:125
static constexpr EffectParameter NormalizeTo
Definition: Loudness.h:127

References DualMono, EffectLoudness(), LUFSLevel, NormalizeTo, RMSLevel, and StereoInd.

Referenced by EffectLoudness().

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

◆ PopulateOrExchange()

std::unique_ptr< EffectUIValidator > EffectLoudness::PopulateOrExchange ( ShuttleGui S,
EffectInstance instance,
EffectSettingsAccess access 
)
overridevirtual

Add controls to effect panel; always succeeds.

Returns
if not null, then return it from Effect::PopulateUI instead of a DefaultEffectUIValidator; default implementation returns null

Reimplemented from Effect.

Definition at line 215 of file Loudness.cpp.

217{
218 S.StartVerticalLay(0);
219 {
220 S.StartMultiColumn(2, wxALIGN_CENTER);
221 {
222 S.StartVerticalLay(false);
223 {
224 S.StartHorizontalLay(wxALIGN_LEFT, false);
225 {
226 S.AddVariableText(XO("&Normalize"), false,
227 wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT);
228
229 mChoice = S
230 .Validator<wxGenericValidator>( &mNormalizeTo )
231 .AddChoice( {},
233 mNormalizeTo );
234 S
235 .AddVariableText(XO("t&o"), false,
236 wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT);
237
238 // Use a notebook so we can have two controls but show only one
239 // They target different variables with their validators
240 mBook =
241 S
242 .StartSimplebook();
243 {
244 S.StartNotebookPage({});
245 {
246 S.StartHorizontalLay(wxALIGN_LEFT, false);
247 {
248 S
249 /* i18n-hint: LUFS is a particular method for measuring loudnesss */
250 .Name( XO("Loudness LUFS") )
251 .Validator<FloatingPointValidator<double>>(
252 2, &mLUFSLevel,
253 NumValidatorStyle::ONE_TRAILING_ZERO,
255 .AddTextBox( {}, L"", 10);
256
257 /* i18n-hint: LUFS is a particular method for measuring loudnesss */
258 S
259 .AddVariableText(XO("LUFS"), false,
260 wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT);
261 }
262 S.EndHorizontalLay();
263 }
264 S.EndNotebookPage();
265
266 S.StartNotebookPage({});
267 {
268 S.StartHorizontalLay(wxALIGN_LEFT, false);
269 {
270 S
271 .Name( XO("RMS dB") )
272 .Validator<FloatingPointValidator<double>>(
273 2, &mRMSLevel,
274 NumValidatorStyle::ONE_TRAILING_ZERO,
276 .AddTextBox( {}, L"", 10);
277
278 S
279 .AddVariableText(XO("dB"), false,
280 wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT);
281 }
282 S.EndHorizontalLay();
283 }
284 S.EndNotebookPage();
285 }
286 S.EndSimplebook();
287
288 mWarning =
289 S
290 .AddVariableText( {}, false,
291 wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT);
292 }
293 S.EndHorizontalLay();
294
296 .Validator<wxGenericValidator>( &mStereoInd )
297 .AddCheckBox(XXO("Normalize &stereo channels independently"),
298 mStereoInd );
299
301 .Validator<wxGenericValidator>( &mDualMono )
302 .AddCheckBox(XXO("&Treat mono as dual-mono (recommended)"),
303 mDualMono );
304 }
305 S.EndVerticalLay();
306 }
307 S.EndMultiColumn();
308 }
309 S.EndVerticalLay();
310 return nullptr;
311}
#define XXO(s)
Definition: Internat.h:44
static const EnumValueSymbol kNormalizeTargetStrings[EffectLoudness::nAlgos]
Definition: Loudness.cpp:36
TranslatableStrings Msgids(const EnumValueSymbol strings[], size_t nStrings)
Convenience function often useful when adding choice controls.
#define S(N)
Definition: ToChars.cpp:64
wxCheckBox * mStereoIndCheckBox
Definition: Loudness.h:108
wxStaticText * mWarning
Definition: Loudness.h:107
double mRMSLevel
Definition: Loudness.h:88
bool mDualMono
Definition: Loudness.h:89
double mLUFSLevel
Definition: Loudness.h:87
A Validator is an object which checks whether a wxVariant satisfies a certain criterion....
Definition: Validators.h:53
const Type min
Minimum value.
Definition: Shuttle.h:30
const Type max
Maximum value.
Definition: Shuttle.h:31

References kNormalizeTargetStrings, LUFSLevel, EffectParameter< Structure, Member, Type, Value >::max, mBook, mChoice, mDualMono, mDualMonoCheckBox, EffectParameter< Structure, Member, Type, Value >::min, mLUFSLevel, mNormalizeTo, mRMSLevel, Msgids(), mStereoInd, mStereoIndCheckBox, mWarning, nAlgos, RMSLevel, S, XO, and XXO.

Here is the call graph for this function:

◆ Process()

bool EffectLoudness::Process ( EffectInstance instance,
EffectSettings settings 
)
overridevirtual

Actually do the effect here.

Returns
success

Implements StatefulEffectBase.

Definition at line 97 of file Loudness.cpp.

98{
100 // LU use 10*log10(...) instead of 20*log10(...)
101 // so multiply level by 2 and use standard DB_TO_LINEAR macro.
102 mRatio = DB_TO_LINEAR(std::clamp<double>(mLUFSLevel*2, LUFSLevel.min, LUFSLevel.max));
103 else // RMS
104 mRatio = DB_TO_LINEAR(std::clamp<double>(mRMSLevel, RMSLevel.min, RMSLevel.max));
105
106 // Iterate over each track
107 this->CopyInputTracks(); // Set up mOutputTracks.
108 bool bGoodResult = true;
109 auto topMsg = XO("Normalizing Loudness...\n");
110
111 AllocBuffers();
112 mProgressVal = 0;
113
114 for(auto track : mOutputTracks->Selected<WaveTrack>()
116 {
117 // Get start and end times from track
118 // PRL: No accounting for multiple channels ?
119 double trackStart = track->GetStartTime();
120 double trackEnd = track->GetEndTime();
121
122 // Set the current bounds to whichever left marker is
123 // greater and whichever right marker is less:
124 mCurT0 = mT0 < trackStart? trackStart: mT0;
125 mCurT1 = mT1 > trackEnd? trackEnd: mT1;
126
127 // Get the track rate
128 mCurRate = track->GetRate();
129
130 wxString msg;
131 auto trackName = track->GetName();
132 mSteps = 2;
133
135 topMsg + XO("Analyzing: %s").Format( trackName );
136
137 auto range = mStereoInd
139 : TrackList::Channels(track);
140
141 mProcStereo = range.size() > 1;
142
144 {
145 mLoudnessProcessor.reset(safenew EBUR128(mCurRate, range.size()));
146 mLoudnessProcessor->Initialize();
147 if(!ProcessOne(range, true))
148 {
149 // Processing failed -> abort
150 bGoodResult = false;
151 break;
152 }
153 }
154 else // RMS
155 {
156 size_t idx = 0;
157 for(auto channel : range)
158 {
159 if(!GetTrackRMS(channel, mRMS[idx]))
160 {
161 bGoodResult = false;
162 return false;
163 }
164 ++idx;
165 }
166 mSteps = 1;
167 }
168
169 // Calculate normalization values the analysis results
170 float extent;
172 extent = mLoudnessProcessor->IntegrativeLoudness();
173 else // RMS
174 {
175 extent = mRMS[0];
176 if(mProcStereo)
177 // RMS: use average RMS, average must be calculated in quadratic domain.
178 extent = sqrt((mRMS[0] * mRMS[0] + mRMS[1] * mRMS[1]) / 2.0);
179 }
180
181 if(extent == 0.0)
182 {
183 mLoudnessProcessor.reset();
184 FreeBuffers();
185 return false;
186 }
187 mMult = mRatio / extent;
188
190 {
191 // Target half the LUFS value if mono (or independent processed stereo)
192 // shall be treated as dual mono.
193 if(range.size() == 1 && (mDualMono || track->GetChannel() != Track::MonoChannel))
194 mMult /= 2.0;
195
196 // LUFS are related to square values so the multiplier must be the root.
197 mMult = sqrt(mMult);
198 }
199
200 mProgressMsg = topMsg + XO("Processing: %s").Format( trackName );
201 if(!ProcessOne(range, false))
202 {
203 // Processing failed -> abort
204 bGoodResult = false;
205 break;
206 }
207 }
208
209 this->ReplaceProcessedTracks(bGoodResult);
210 mLoudnessProcessor.reset();
211 FreeBuffers();
212 return bGoodResult;
213}
#define safenew
Definition: MemoryX.h:10
#define DB_TO_LINEAR(x)
Definition: MemoryX.h:535
Implements EBU-R128 loudness measurement.
Definition: EBUR128.h:22
double mT1
Definition: EffectBase.h:107
double mT0
Definition: EffectBase.h:106
void ReplaceProcessedTracks(const bool bGoodResult)
Definition: EffectBase.cpp:236
void CopyInputTracks(bool allSyncLockSelected=false)
Definition: Effect.cpp:741
double mCurRate
Definition: Loudness.h:98
float mRMS[2]
Definition: Loudness.h:102
bool GetTrackRMS(WaveTrack *track, float &rms)
Definition: Loudness.cpp:356
float mRatio
Definition: Loudness.h:101
void FreeBuffers()
Definition: Loudness.cpp:350
void AllocBuffers()
Definition: Loudness.cpp:325
double mProgressVal
Definition: Loudness.h:94
TranslatableString mProgressMsg
Definition: Loudness.h:96
bool ProcessOne(TrackIterRange< WaveTrack > range, bool analyse)
Definition: Loudness.cpp:370
@ MonoChannel
Definition: Track.h:284
bool IsLeader() const
Definition: Track.cpp:405
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...
Definition: Track.h:1336
static auto SingletonRange(TrackType *pTrack) -> TrackIterRange< TrackType >
Definition: Track.h:1503

References AllocBuffers(), Track::Any(), TrackList::Channels(), Effect::CopyInputTracks(), DB_TO_LINEAR, FreeBuffers(), GetTrackRMS(), Track::IsLeader(), kLoudness, LUFSLevel, EffectParameter< Structure, Member, Type, Value >::max, mCurRate, mCurT0, mCurT1, mDualMono, EffectParameter< Structure, Member, Type, Value >::min, mLoudnessProcessor, mLUFSLevel, mMult, mNormalizeTo, Track::MonoChannel, EffectBase::mOutputTracks, mProcStereo, mProgressMsg, mProgressVal, mRatio, mRMS, mRMSLevel, mSteps, mStereoInd, EffectBase::mT0, EffectBase::mT1, ProcessOne(), EffectBase::ReplaceProcessedTracks(), RMSLevel, safenew, TrackList::SingletonRange(), and XO.

Here is the call graph for this function:

◆ ProcessBufferBlock()

bool EffectLoudness::ProcessBufferBlock ( )
private

Definition at line 453 of file Loudness.cpp.

454{
455 for(size_t i = 0; i < mTrackBufferLen; i++)
456 {
457 mTrackBuffer[0][i] = mTrackBuffer[0][i] * mMult;
458 if(mProcStereo)
459 mTrackBuffer[1][i] = mTrackBuffer[1][i] * mMult;
460 }
461
462 if(!UpdateProgress())
463 return false;
464 return true;
465}

References mMult, mProcStereo, mTrackBuffer, mTrackBufferLen, and UpdateProgress().

Referenced by ProcessOne().

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

◆ ProcessOne()

bool EffectLoudness::ProcessOne ( TrackIterRange< WaveTrack range,
bool  analyse 
)
private

ProcessOne() takes a track, transforms it to bunch of buffer-blocks, and executes ProcessData, on it... uses mMult to normalize a track. mMult must be set before this is called In analyse mode, it executes the selected analyse operation on it... mMult does not have to be set before this is called

Definition at line 370 of file Loudness.cpp.

371{
372 WaveTrack* track = *range.begin();
373
374 // Transform the marker timepoints to samples
375 auto start = track->TimeToLongSamples(mCurT0);
376 auto end = track->TimeToLongSamples(mCurT1);
377
378 // Get the length of the buffer (as double). len is
379 // used simply to calculate a progress meter, so it is easier
380 // to make it a double now than it is to do it later
381 mTrackLen = (end - start).as_double();
382
383 // Abort if the right marker is not to the right of the left marker
384 if(mCurT1 <= mCurT0)
385 return false;
386
387 // Go through the track one buffer at a time. s counts which
388 // sample the current buffer starts at.
389 auto s = start;
390 while(s < end)
391 {
392 // Get a block of samples (smaller than the size of the buffer)
393 // Adjust the block size if it is the final block in the track
394 auto blockLen = limitSampleBufferSize(
395 track->GetBestBlockSize(s),
397
398 const size_t remainingLen = (end - s).as_size_t();
399 blockLen = blockLen > remainingLen ? remainingLen : blockLen;
400 LoadBufferBlock(range, s, blockLen);
401
402 // Process the buffer.
403 if(analyse)
404 {
405 if(!AnalyseBufferBlock())
406 return false;
407 }
408 else
409 {
410 if(!ProcessBufferBlock())
411 return false;
412 StoreBufferBlock(range, s, blockLen);
413 }
414
415 // Increment s one blockfull of samples
416 s += blockLen;
417 }
418
419 // Return true because the effect processing succeeded ... unless cancelled
420 return true;
421}
size_t limitSampleBufferSize(size_t bufferSize, sampleCount limit)
Definition: SampleCount.cpp:23
double mTrackLen
Definition: Loudness.h:97
bool ProcessBufferBlock()
Definition: Loudness.cpp:453
bool AnalyseBufferBlock()
Definition: Loudness.cpp:438
void StoreBufferBlock(TrackIterRange< WaveTrack > range, sampleCount pos, size_t len)
Definition: Loudness.cpp:467
void LoadBufferBlock(TrackIterRange< WaveTrack > range, sampleCount pos, size_t len)
Definition: Loudness.cpp:423
sampleCount TimeToLongSamples(double t0) const
Convert correctly between an (absolute) time in seconds and a number of samples.
Definition: SampleTrack.cpp:42
size_t GetBestBlockSize(sampleCount t) const override
This returns a nonnegative number of samples meant to size a memory buffer.
Definition: WaveTrack.cpp:1788
auto end(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
Definition: PackedArray.h:159
Iterator begin() const
Definition: MemoryX.h:265

References AnalyseBufferBlock(), IteratorRange< Iterator >::begin(), PackedArray::end(), WaveTrack::GetBestBlockSize(), limitSampleBufferSize(), LoadBufferBlock(), mCurT0, mCurT1, mTrackBufferCapacity, mTrackLen, ProcessBufferBlock(), StoreBufferBlock(), and SampleTrack::TimeToLongSamples().

Referenced by Process().

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

◆ StoreBufferBlock()

void EffectLoudness::StoreBufferBlock ( TrackIterRange< WaveTrack range,
sampleCount  pos,
size_t  len 
)
private

Definition at line 467 of file Loudness.cpp.

469{
470 int idx = 0;
471 for(auto channel : range)
472 {
473 // Copy the newly-changed samples back onto the track.
474 channel->Set((samplePtr) mTrackBuffer[idx].get(), floatSample, pos, len);
475 ++idx;
476 }
477}
@ floatSample
Definition: SampleFormat.h:34
char * samplePtr
Definition: SampleFormat.h:49

References floatSample, and mTrackBuffer.

Referenced by ProcessOne().

Here is the caller graph for this function:

◆ TransferDataToWindow()

bool EffectLoudness::TransferDataToWindow ( const EffectSettings settings)
overridevirtual

Update controls for the settings.

Reimplemented from Effect.

Definition at line 313 of file Loudness.cpp.

314{
315 // adjust controls which depend on mchoice
316 wxCommandEvent dummy;
317 OnChoice(dummy);
318 return true;
319}
void OnChoice(wxCommandEvent &evt)
Definition: Loudness.cpp:486

References OnChoice().

Here is the call graph for this function:

◆ UpdateProgress()

bool EffectLoudness::UpdateProgress ( )
private

Definition at line 479 of file Loudness.cpp.

480{
481 mProgressVal += (double(1+mProcStereo) * double(mTrackBufferLen)
482 / (double(GetNumWaveTracks()) * double(mSteps) * mTrackLen));
484}
bool TotalProgress(double frac, const TranslatableString &={}) const
Definition: Effect.cpp:685
int GetNumWaveTracks() const
Definition: Effect.h:187

References Effect::GetNumWaveTracks(), mProcStereo, mProgressMsg, mProgressVal, mSteps, mTrackBufferLen, mTrackLen, and Effect::TotalProgress().

Referenced by AnalyseBufferBlock(), and ProcessBufferBlock().

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

◆ UpdateUI()

void EffectLoudness::UpdateUI ( )
private

Definition at line 499 of file Loudness.cpp.

500{
501 if (!mUIParent->TransferDataFromWindow())
502 {
503 mWarning->SetLabel(_("(Maximum 0dB)"));
504 // TODO: recalculate layout here
505 EnableApply(false);
506 return;
507 }
508 mWarning->SetLabel(wxT(""));
509 EnableApply(true);
510}
#define _(s)
Definition: Internat.h:75
bool EnableApply(bool enable=true)
Definition: Effect.cpp:613
wxWindow * mUIParent
Definition: Effect.h:270

References _, Effect::EnableApply(), Effect::mUIParent, and mWarning.

Referenced by OnChoice(), and OnUpdateUI().

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

Member Data Documentation

◆ DualMono

constexpr EffectParameter EffectLoudness::DualMono
staticconstexprprivate
Initial value:
L"DualMono", true, false, true, 1 }

Definition at line 125 of file Loudness.h.

Referenced by Parameters().

◆ LUFSLevel

constexpr EffectParameter EffectLoudness::LUFSLevel
staticconstexprprivate
Initial value:
L"LUFSLevel", -23.0, -145.0, 0.0, 1 }

Definition at line 121 of file Loudness.h.

Referenced by Parameters(), PopulateOrExchange(), and Process().

◆ mBook

wxSimplebook* EffectLoudness::mBook
private

Definition at line 105 of file Loudness.h.

Referenced by OnChoice(), and PopulateOrExchange().

◆ mChoice

wxChoice* EffectLoudness::mChoice
private

Definition at line 106 of file Loudness.h.

Referenced by OnChoice(), and PopulateOrExchange().

◆ mCurRate

double EffectLoudness::mCurRate
private

Definition at line 98 of file Loudness.h.

Referenced by Process().

◆ mCurT0

double EffectLoudness::mCurT0
private

Definition at line 92 of file Loudness.h.

Referenced by GetTrackRMS(), Process(), and ProcessOne().

◆ mCurT1

double EffectLoudness::mCurT1
private

Definition at line 93 of file Loudness.h.

Referenced by GetTrackRMS(), Process(), and ProcessOne().

◆ mDualMono

bool EffectLoudness::mDualMono
private

Definition at line 89 of file Loudness.h.

Referenced by PopulateOrExchange(), and Process().

◆ mDualMonoCheckBox

wxCheckBox* EffectLoudness::mDualMonoCheckBox
private

Definition at line 109 of file Loudness.h.

Referenced by OnChoice(), and PopulateOrExchange().

◆ mLoudnessProcessor

std::unique_ptr<EBUR128> EffectLoudness::mLoudnessProcessor
private

Definition at line 103 of file Loudness.h.

Referenced by AnalyseBufferBlock(), and Process().

◆ mLUFSLevel

double EffectLoudness::mLUFSLevel
private

Definition at line 87 of file Loudness.h.

Referenced by PopulateOrExchange(), and Process().

◆ mMult

float EffectLoudness::mMult
private

Definition at line 100 of file Loudness.h.

Referenced by Process(), and ProcessBufferBlock().

◆ mNormalizeTo

int EffectLoudness::mNormalizeTo
private

Definition at line 90 of file Loudness.h.

Referenced by OnChoice(), PopulateOrExchange(), and Process().

◆ mProcStereo

bool EffectLoudness::mProcStereo
private

◆ mProgressMsg

TranslatableString EffectLoudness::mProgressMsg
private

Definition at line 96 of file Loudness.h.

Referenced by Process(), and UpdateProgress().

◆ mProgressVal

double EffectLoudness::mProgressVal
private

Definition at line 94 of file Loudness.h.

Referenced by Process(), and UpdateProgress().

◆ mRatio

float EffectLoudness::mRatio
private

Definition at line 101 of file Loudness.h.

Referenced by Process().

◆ mRMS

float EffectLoudness::mRMS[2]
private

Definition at line 102 of file Loudness.h.

Referenced by Process().

◆ mRMSLevel

double EffectLoudness::mRMSLevel
private

Definition at line 88 of file Loudness.h.

Referenced by PopulateOrExchange(), and Process().

◆ mSteps

int EffectLoudness::mSteps
private

Definition at line 95 of file Loudness.h.

Referenced by Process(), and UpdateProgress().

◆ mStereoInd

bool EffectLoudness::mStereoInd
private

Definition at line 86 of file Loudness.h.

Referenced by AllocBuffers(), PopulateOrExchange(), and Process().

◆ mStereoIndCheckBox

wxCheckBox* EffectLoudness::mStereoIndCheckBox
private

Definition at line 108 of file Loudness.h.

Referenced by PopulateOrExchange().

◆ mTrackBuffer

Floats EffectLoudness::mTrackBuffer[2]
private

◆ mTrackBufferCapacity

size_t EffectLoudness::mTrackBufferCapacity
private

Definition at line 113 of file Loudness.h.

Referenced by AllocBuffers(), and ProcessOne().

◆ mTrackBufferLen

size_t EffectLoudness::mTrackBufferLen
private

◆ mTrackLen

double EffectLoudness::mTrackLen
private

Definition at line 97 of file Loudness.h.

Referenced by ProcessOne(), and UpdateProgress().

◆ mWarning

wxStaticText* EffectLoudness::mWarning
private

Definition at line 107 of file Loudness.h.

Referenced by PopulateOrExchange(), and UpdateUI().

◆ NormalizeTo

constexpr EffectParameter EffectLoudness::NormalizeTo
staticconstexprprivate
Initial value:
L"NormalizeTo", (int)kLoudness , 0 , nAlgos-1, 1 }

Definition at line 127 of file Loudness.h.

Referenced by Parameters().

◆ RMSLevel

constexpr EffectParameter EffectLoudness::RMSLevel
staticconstexprprivate
Initial value:
L"RMSLevel", -20.0, -145.0, 0.0, 1 }

Definition at line 123 of file Loudness.h.

Referenced by Parameters(), PopulateOrExchange(), and Process().

◆ StereoInd

constexpr EffectParameter EffectLoudness::StereoInd
staticconstexprprivate
Initial value:
L"StereoIndependent", false, false, true, 1 }

Definition at line 119 of file Loudness.h.

Referenced by Parameters().

◆ Symbol

const ComponentInterfaceSymbol EffectLoudness::Symbol { XO("Loudness Normalization") }
static

Definition at line 43 of file Loudness.h.

Referenced by GetSymbol().


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