Audacity  3.0.3
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
EffectFindClipping Class Referencefinal

Locates clipping and inserts labels when found. More...

#include <FindClipping.h>

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

Public Member Functions

 EffectFindClipping ()
 
virtual ~EffectFindClipping ()
 
ComponentInterfaceSymbol GetSymbol () override
 
TranslatableString GetDescription () override
 
wxString ManualPage () override
 
EffectType GetType () override
 
bool DefineParams (ShuttleParams &S) override
 
bool GetAutomationParameters (CommandParameters &parms) override
 
bool SetAutomationParameters (CommandParameters &parms) override
 
bool Process () override
 
void PopulateOrExchange (ShuttleGui &S) override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
- Public Member Functions inherited from Effect
 Effect ()
 
virtual ~Effect ()
 
PluginPath GetPath () override
 
VendorSymbol GetVendor () override
 
wxString GetVersion () override
 
EffectFamilySymbol GetFamily () override
 
bool IsInteractive () override
 
bool IsDefault () override
 
bool IsLegacy () override
 
bool SupportsRealtime () override
 
bool SupportsAutomation () override
 
bool SetHost (EffectHostInterface *host) override
 
unsigned GetAudioInCount () override
 
unsigned GetAudioOutCount () override
 
int GetMidiInCount () override
 
int GetMidiOutCount () override
 
sampleCount GetLatency () override
 
size_t GetTailSize () override
 
void SetSampleRate (double rate) override
 
size_t SetBlockSize (size_t maxBlockSize) override
 
size_t GetBlockSize () const override
 
bool IsReady () override
 
bool ProcessInitialize (sampleCount totalLen, ChannelNames chanMap=NULL) override
 
bool ProcessFinalize () override
 
size_t ProcessBlock (float **inBlock, float **outBlock, size_t blockLen) override
 
bool RealtimeInitialize () override
 
bool RealtimeAddProcessor (unsigned numChannels, float sampleRate) override
 
bool RealtimeFinalize () override
 
bool RealtimeSuspend () override
 
bool RealtimeResume () override
 
bool RealtimeProcessStart () override
 
size_t RealtimeProcess (int group, float **inbuf, float **outbuf, size_t numSamples) override
 
bool RealtimeProcessEnd () override
 
bool ShowInterface (wxWindow &parent, const EffectDialogFactory &factory, bool forceModal=false) override
 
bool LoadUserPreset (const RegistryPath &name) override
 
bool SaveUserPreset (const RegistryPath &name) override
 
RegistryPaths GetFactoryPresets () override
 
bool LoadFactoryPreset (int id) override
 
bool LoadFactoryDefaults () override
 
void SetHostUI (EffectUIHostInterface *host) override
 
bool PopulateUI (ShuttleGui &S) final
 
bool IsGraphicalUI () override
 
bool ValidateUI () override
 
bool HideUI () override
 
bool CloseUI () override
 
bool CanExportPresets () override
 
void ExportPresets () override
 
void ImportPresets () override
 
bool HasOptions () override
 
void ShowOptions () override
 
double GetDefaultDuration () override
 
double GetDuration () override
 
NumericFormatSymbol GetDurationFormat () override
 
virtual NumericFormatSymbol GetSelectionFormat ()
 
void SetDuration (double duration) override
 
RegistryPath GetUserPresetsGroup (const RegistryPath &name) override
 
RegistryPath GetCurrentSettingsGroup () override
 
RegistryPath GetFactoryDefaultsGroup () override
 
virtual wxString GetSavedStateGroup ()
 
bool HasSharedConfigGroup (const RegistryPath &group) override
 
bool GetSharedConfigSubgroups (const RegistryPath &group, RegistryPaths &subgroups) override
 
bool GetSharedConfig (const RegistryPath &group, const RegistryPath &key, wxString &value, const wxString &defval={}) override
 
bool GetSharedConfig (const RegistryPath &group, const RegistryPath &key, int &value, int defval=0) override
 
bool GetSharedConfig (const RegistryPath &group, const RegistryPath &key, bool &value, bool defval=false) override
 
bool GetSharedConfig (const RegistryPath &group, const RegistryPath &key, float &value, float defval=0.0) override
 
bool GetSharedConfig (const RegistryPath &group, const RegistryPath &key, double &value, double defval=0.0) override
 
bool SetSharedConfig (const RegistryPath &group, const RegistryPath &key, const wxString &value) override
 
bool SetSharedConfig (const RegistryPath &group, const RegistryPath &key, const int &value) override
 
bool SetSharedConfig (const RegistryPath &group, const RegistryPath &key, const bool &value) override
 
bool SetSharedConfig (const RegistryPath &group, const RegistryPath &key, const float &value) override
 
bool SetSharedConfig (const RegistryPath &group, const RegistryPath &key, const double &value) override
 
bool RemoveSharedConfigSubgroup (const RegistryPath &group) override
 
bool RemoveSharedConfig (const RegistryPath &group, const RegistryPath &key) override
 
bool HasPrivateConfigGroup (const RegistryPath &group) override
 
bool GetPrivateConfigSubgroups (const RegistryPath &group, RegistryPaths &paths) override
 
bool GetPrivateConfig (const RegistryPath &group, const RegistryPath &key, wxString &value, const wxString &defval={}) override
 
bool GetPrivateConfig (const RegistryPath &group, const RegistryPath &key, int &value, int defval=0) override
 
bool GetPrivateConfig (const RegistryPath &group, const RegistryPath &key, bool &value, bool defval=false) override
 
bool GetPrivateConfig (const RegistryPath &group, const RegistryPath &key, float &value, float defval=0.0) override
 
bool GetPrivateConfig (const RegistryPath &group, const RegistryPath &key, double &value, double defval=0.0) override
 
bool SetPrivateConfig (const RegistryPath &group, const RegistryPath &key, const wxString &value) override
 
bool SetPrivateConfig (const RegistryPath &group, const RegistryPath &key, const int &value) override
 
bool SetPrivateConfig (const RegistryPath &group, const RegistryPath &key, const bool &value) override
 
bool SetPrivateConfig (const RegistryPath &group, const RegistryPath &key, const float &value) override
 
bool SetPrivateConfig (const RegistryPath &group, const RegistryPath &key, const double &value) override
 
bool RemovePrivateConfigSubgroup (const RegistryPath &group) override
 
bool RemovePrivateConfig (const RegistryPath &group, const RegistryPath &key) override
 
virtual PluginID GetID ()
 
virtual bool Startup (EffectClientInterface *client)
 
virtual bool Startup ()
 
virtual bool GetAutomationParameters (wxString &parms)
 
virtual bool SetAutomationParameters (const wxString &parms)
 
virtual RegistryPaths GetUserPresets ()
 
virtual bool HasCurrentSettings ()
 
virtual bool HasFactoryDefaults ()
 
virtual wxString HelpPage ()
 
virtual void SetUIFlags (unsigned flags)
 
virtual unsigned TestUIFlags (unsigned mask)
 
virtual bool IsBatchProcessing ()
 
virtual void SetBatchProcessing (bool start)
 
void SetPresetParameters (const wxArrayString *Names, const wxArrayString *Values)
 
bool DoEffect (double projectRate, TrackList *list, WaveTrackFactory *factory, NotifyingSelectedRegion &selectedRegion, wxWindow *pParent=nullptr, const EffectDialogFactory &dialogFactory={})
 
bool Delegate (Effect &delegate, wxWindow &parent, const EffectDialogFactory &factory)
 
virtual bool IsHidden ()
 
int MessageBox (const TranslatableString &message, long style=DefaultMessageBoxStyle, const TranslatableString &titleStr={})
 
- Public Member Functions inherited from EffectClientInterface
virtual ~EffectClientInterface ()
 
- Public Member Functions inherited from EffectDefinitionInterface
virtual ~EffectDefinitionInterface ()
 
virtual EffectType GetClassification ()
 
- Public Member Functions inherited from ComponentInterface
virtual ~ComponentInterface ()
 
TranslatableString GetName ()
 
virtual bool DefineParams (ShuttleParams &WXUNUSED(S))
 
- Public Member Functions inherited from EffectUIClientInterface
virtual ~EffectUIClientInterface ()
 
- Public Member Functions inherited from EffectHostInterface
virtual ~EffectHostInterface ()
 
- Public Member Functions inherited from ConfigClientInterface
virtual ~ConfigClientInterface ()
 

Static Public Attributes

static const ComponentInterfaceSymbol Symbol { XO("Find Clipping") }
 
- Static Public Attributes inherited from Effect
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

bool ProcessOne (LabelTrack *lt, int count, const WaveTrack *wt, sampleCount start, sampleCount len)
 

Private Attributes

int mStart
 Using int rather than sampleCount because values are only ever small numbers. More...
 
int mStop
 Using int rather than sampleCount because values are only ever small numbers. More...
 

Additional Inherited Members

- Public Types inherited from Effect
enum  : long { DefaultMessageBoxStyle = wxOK | wxCENTRE }
 
using VetoDialogHook = bool(*)(wxDialog *)
 
- Public Types inherited from EffectClientInterface
using EffectDialogFactory = std::function< wxDialog *(wxWindow &parent, EffectHostInterface *, EffectUIClientInterface *) >
 
- Static Public Member Functions inherited from Effect
static VetoDialogHook SetVetoDialogHook (VetoDialogHook hook)
 
static CommandID GetSquashedName (wxString name)
 
static void IncEffectCounter ()
 
- Protected Member Functions inherited from Effect
virtual bool Init ()
 
virtual bool CheckWhetherSkipEffect ()
 
virtual bool ProcessPass ()
 
virtual bool InitPass1 ()
 
virtual bool InitPass2 ()
 
virtual int GetPass ()
 
virtual void End ()
 
virtual double CalcPreviewInputLength (double previewLength)
 
virtual void Preview (bool dryOnly)
 
virtual bool EnableApply (bool enable=true)
 
virtual bool EnablePreview (bool enable=true)
 
virtual void EnableDebug (bool enable=true)
 
bool TotalProgress (double frac, const TranslatableString &={})
 
bool TrackProgress (int whichTrack, double frac, const TranslatableString &={})
 
bool TrackGroupProgress (int whichGroup, double frac, const TranslatableString &={})
 
int GetNumWaveTracks ()
 
int GetNumWaveGroups ()
 
void GetBounds (const WaveTrack &track, const WaveTrack *pRight, sampleCount *start, sampleCount *len)
 
void SetLinearEffectFlag (bool linearEffectFlag)
 
void SetPreviewFullSelectionFlag (bool previewDurationFlag)
 
bool IsPreviewing ()
 
void IncludeNotSelectedPreviewTracks (bool includeNotSelected)
 
void CopyInputTracks (bool allSyncLockSelected=false)
 
std::shared_ptr< AddedAnalysisTrackAddAnalysisTrack (const wxString &name=wxString())
 
ModifiedAnalysisTrack ModifyAnalysisTrack (const LabelTrack *pOrigTrack, const wxString &name=wxString())
 
void ReplaceProcessedTracks (const bool bGoodResult)
 
TrackAddToOutputTracks (const std::shared_ptr< Track > &t)
 
const TrackListinputTracks () const
 
const AudacityProjectFindProject () const
 
- Protected Attributes inherited from Effect
ProgressDialogmProgress
 
double mProjectRate
 
double mSampleRate
 
wxWeakRef< NotifyingSelectedRegionmpSelectedRegion {}
 
WaveTrackFactorymFactory
 
std::shared_ptr< TrackListmOutputTracks
 
double mT0
 
double mT1
 
wxArrayString mPresetNames
 
wxArrayString mPresetValues
 
int mPass
 
wxDialog * mUIDialog
 
wxWindow * mUIParent
 
int mUIResultID
 
unsigned mUIFlags
 
sampleCount mSampleCnt
 
- Static Protected Attributes inherited from Effect
static int nEffectsDone =0
 

Detailed Description

Locates clipping and inserts labels when found.

Definition at line 21 of file FindClipping.h.

Constructor & Destructor Documentation

◆ EffectFindClipping()

EffectFindClipping::EffectFindClipping ( )

Definition at line 49 of file FindClipping.cpp.

50 {
51  mStart = DEF_Start;
52  mStop = DEF_Stop;
53 }

References mStart, and mStop.

◆ ~EffectFindClipping()

EffectFindClipping::~EffectFindClipping ( )
virtual

Definition at line 55 of file FindClipping.cpp.

56 {
57 }

Member Function Documentation

◆ DefineParams()

bool EffectFindClipping::DefineParams ( ShuttleParams S)
override

Definition at line 84 of file FindClipping.cpp.

84  {
85  S.SHUTTLE_PARAM( mStart, Start );
86  S.SHUTTLE_PARAM( mStop, Stop );
87  return true;
88 }

References mStart, and mStop.

◆ GetAutomationParameters()

bool EffectFindClipping::GetAutomationParameters ( CommandParameters parms)
overridevirtual

Reimplemented from Effect.

Definition at line 90 of file FindClipping.cpp.

91 {
92  parms.Write(KEY_Start, mStart);
93  parms.Write(KEY_Stop, mStop);
94 
95  return true;
96 }

References mStart, and mStop.

◆ GetDescription()

TranslatableString EffectFindClipping::GetDescription ( )
overridevirtual

Reimplemented from Effect.

Definition at line 66 of file FindClipping.cpp.

67 {
68  return XO("Creates labels where clipping is detected");
69 }

References XO.

◆ GetSymbol()

ComponentInterfaceSymbol EffectFindClipping::GetSymbol ( )
overridevirtual

Reimplemented from Effect.

Definition at line 61 of file FindClipping.cpp.

62 {
63  return Symbol;
64 }

References Symbol.

◆ GetType()

EffectType EffectFindClipping::GetType ( )
overridevirtual

Reimplemented from Effect.

Definition at line 78 of file FindClipping.cpp.

79 {
80  return EffectTypeAnalyze;
81 }

References EffectTypeAnalyze.

◆ ManualPage()

wxString EffectFindClipping::ManualPage ( )
overridevirtual

Reimplemented from Effect.

Definition at line 71 of file FindClipping.cpp.

72 {
73  return wxT("Find_Clipping");
74 }

◆ PopulateOrExchange()

void EffectFindClipping::PopulateOrExchange ( ShuttleGui S)
overridevirtual

Reimplemented from Effect.

Definition at line 243 of file FindClipping.cpp.

244 {
245  S.StartMultiColumn(2, wxALIGN_CENTER);
246  {
247  S.Validator<IntegerValidator<int>>(
248  &mStart, NumValidatorStyle::DEFAULT, MIN_Start)
249  .TieTextBox(XXO("&Start threshold (samples):"), mStart, 10);
250 
251  S.Validator<IntegerValidator<int>>(
252  &mStop, NumValidatorStyle::DEFAULT, MIN_Stop)
253  .TieTextBox(XXO("St&op threshold (samples):"), mStop, 10);
254  }
255  S.EndMultiColumn();
256 }

References ShuttleGuiBase::EndMultiColumn(), mStart, mStop, ShuttleGuiBase::StartMultiColumn(), ShuttleGui::Validator(), and XXO.

Referenced by TransferDataFromWindow(), and TransferDataToWindow().

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

◆ Process()

bool EffectFindClipping::Process ( )
overridevirtual

Reimplemented from Effect.

Definition at line 111 of file FindClipping.cpp.

112 {
113  std::shared_ptr<AddedAnalysisTrack> addedTrack;
114  Optional<ModifiedAnalysisTrack> modifiedTrack;
115  const wxString name{ _("Clipping") };
116 
117  auto clt = *inputTracks()->Any< const LabelTrack >().find_if(
118  [&]( const Track *track ){ return track->GetName() == name; } );
119 
120  LabelTrack *lt{};
121  if (!clt)
122  addedTrack = (AddAnalysisTrack(name)), lt = addedTrack->get();
123  else
124  modifiedTrack.emplace(ModifyAnalysisTrack(clt, name)),
125  lt = modifiedTrack->get();
126 
127  int count = 0;
128 
129  // JC: Only process selected tracks.
130  for (auto t : inputTracks()->Selected< const WaveTrack >()) {
131  double trackStart = t->GetStartTime();
132  double trackEnd = t->GetEndTime();
133  double t0 = mT0 < trackStart ? trackStart : mT0;
134  double t1 = mT1 > trackEnd ? trackEnd : mT1;
135 
136  if (t1 > t0) {
137  auto start = t->TimeToLongSamples(t0);
138  auto end = t->TimeToLongSamples(t1);
139  auto len = end - start;
140 
141  if (!ProcessOne(lt, count, t, start, len)) {
142  return false;
143  }
144  }
145 
146  count++;
147  }
148 
149  // No cancellation, so commit the addition of the track.
150  if (addedTrack)
151  addedTrack->Commit();
152  if (modifiedTrack)
153  modifiedTrack->Commit();
154  return true;
155 }

References _, Effect::AddAnalysisTrack(), TrackList::Any(), Effect::AddedAnalysisTrack::Commit(), Effect::ModifiedAnalysisTrack::Commit(), Optional< X >::emplace(), Effect::AddedAnalysisTrack::get(), Effect::ModifiedAnalysisTrack::get(), Track::GetName(), LabelTrack::GetStartTime(), Effect::inputTracks(), Effect::ModifyAnalysisTrack(), Effect::mT0, Effect::mT1, name, ProcessOne(), and TrackList::Selected().

Here is the call graph for this function:

◆ ProcessOne()

bool EffectFindClipping::ProcessOne ( LabelTrack lt,
int  count,
const WaveTrack wt,
sampleCount  start,
sampleCount  len 
)
private

Definition at line 157 of file FindClipping.cpp.

162 {
163  bool bGoodResult = true;
164  size_t blockSize = (mStart * 1000);
165 
166  if (len < mStart) {
167  return true;
168  }
169 
170  Floats buffer;
171  try {
172  // mStart should be positive.
173  // if we are throwing bad_alloc and mStart is negative, find out why.
174  if (mStart < 0 || (int)blockSize < mStart)
175  // overflow
176  throw std::bad_alloc{};
177  buffer.reinit(blockSize);
178  }
179  catch( const std::bad_alloc & ) {
180  Effect::MessageBox( XO("Requested value exceeds memory capacity.") );
181  return false;
182  }
183 
184  float *ptr = buffer.get();
185 
186  decltype(len) s = 0, startrun = 0, stoprun = 0, samps = 0;
187  decltype(blockSize) block = 0;
188  double startTime = -1.0;
189 
190  while (s < len) {
191  if (block == 0) {
192  if (TrackProgress(count,
193  s.as_double() /
194  len.as_double() )) {
195  bGoodResult = false;
196  break;
197  }
198 
199  block = limitSampleBufferSize( blockSize, len - s );
200 
201  wt->Get((samplePtr)buffer.get(), floatSample, start + s, block);
202  ptr = buffer.get();
203  }
204 
205  float v = fabs(*ptr++);
206  if (v >= MAX_AUDIO) {
207  if (startrun == 0) {
208  startTime = wt->LongSamplesToTime(start + s);
209  samps = 0;
210  }
211  else {
212  stoprun = 0;
213  }
214  startrun++;
215  samps++;
216  }
217  else {
218  if (startrun >= mStart) {
219  stoprun++;
220  samps++;
221 
222  if (stoprun >= mStop) {
223  lt->AddLabel(SelectedRegion(startTime,
224  wt->LongSamplesToTime(start + s - mStop)),
225  wxString::Format(wxT("%lld of %lld"), startrun.as_long_long(), (samps - mStop).as_long_long()));
226  startrun = 0;
227  stoprun = 0;
228  samps = 0;
229  }
230  }
231  else {
232  startrun = 0;
233  }
234  }
235 
236  s++;
237  block--;
238  }
239 
240  return bGoodResult;
241 }

References LabelTrack::AddLabel(), sampleCount::as_double(), floatSample, WaveTrack::Get(), limitSampleBufferSize(), WaveTrack::LongSamplesToTime(), MAX_AUDIO, Effect::MessageBox(), mStart, mStop, ArrayOf< X >::reinit(), Effect::TrackProgress(), and XO.

Referenced by Process().

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

◆ SetAutomationParameters()

bool EffectFindClipping::SetAutomationParameters ( CommandParameters parms)
overridevirtual

Reimplemented from Effect.

Definition at line 98 of file FindClipping.cpp.

99 {
100  ReadAndVerifyInt(Start);
101  ReadAndVerifyInt(Stop);
102 
103  mStart = Start;
104  mStop = Stop;
105 
106  return true;
107 }

References mStart, mStop, and ReadAndVerifyInt.

◆ TransferDataFromWindow()

bool EffectFindClipping::TransferDataFromWindow ( )
overridevirtual

Reimplemented from Effect.

Definition at line 266 of file FindClipping.cpp.

267 {
268  if (!mUIParent->Validate())
269  {
270  return false;
271  }
272 
275 
276  return true;
277 }

References eIsGettingFromDialog, Effect::mUIParent, and PopulateOrExchange().

Here is the call graph for this function:

◆ TransferDataToWindow()

bool EffectFindClipping::TransferDataToWindow ( )
overridevirtual

Reimplemented from Effect.

Definition at line 258 of file FindClipping.cpp.

259 {
262 
263  return true;
264 }

References eIsSettingToDialog, Effect::mUIParent, and PopulateOrExchange().

Here is the call graph for this function:

Member Data Documentation

◆ mStart

int EffectFindClipping::mStart
private

Using int rather than sampleCount because values are only ever small numbers.

Definition at line 59 of file FindClipping.h.

Referenced by DefineParams(), EffectFindClipping(), GetAutomationParameters(), PopulateOrExchange(), ProcessOne(), and SetAutomationParameters().

◆ mStop

int EffectFindClipping::mStop
private

Using int rather than sampleCount because values are only ever small numbers.

Definition at line 60 of file FindClipping.h.

Referenced by DefineParams(), EffectFindClipping(), GetAutomationParameters(), PopulateOrExchange(), ProcessOne(), and SetAutomationParameters().

◆ Symbol

const ComponentInterfaceSymbol EffectFindClipping::Symbol { XO("Find Clipping") }
static

Definition at line 24 of file FindClipping.h.

Referenced by GetSymbol().


The documentation for this class was generated from the following files:
Optional::emplace
X & emplace(Args &&... args)
Definition: MemoryX.h:259
WaveTrack
A Track that contains audio waveform data.
Definition: WaveTrack.h:68
Optional
Like a smart pointer, allows for object to not exist (nullptr)
Definition: MemoryX.h:210
eIsGettingFromDialog
@ eIsGettingFromDialog
Definition: ShuttleGui.h:37
Effect::MessageBox
int MessageBox(const TranslatableString &message, long style=DefaultMessageBoxStyle, const TranslatableString &titleStr={})
Definition: Effect.cpp:2478
Effect::AddedAnalysisTrack::get
LabelTrack * get() const
Definition: Effect.h:391
Track::GetName
wxString GetName() const
Definition: Track.h:409
LabelTrack::GetStartTime
double GetStartTime() const override
Definition: LabelTrack.cpp:315
Effect::mT1
double mT1
Definition: Effect.h:466
ArrayOf::reinit
void reinit(Integral count, bool initialize=false)
Definition: MemoryX.h:112
EffectFindClipping::ProcessOne
bool ProcessOne(LabelTrack *lt, int count, const WaveTrack *wt, sampleCount start, sampleCount len)
Definition: FindClipping.cpp:157
Effect::ModifyAnalysisTrack
ModifiedAnalysisTrack ModifyAnalysisTrack(const LabelTrack *pOrigTrack, const wxString &name=wxString())
Definition: Effect.cpp:2185
XO
#define XO(s)
Definition: Internat.h:32
LabelTrack
A LabelTrack is a Track that holds labels (LabelStruct).
Definition: LabelTrack.h:88
ShuttleGuiBase::EndMultiColumn
void EndMultiColumn()
Definition: ShuttleGui.cpp:1212
floatSample
@ floatSample
Definition: Types.h:714
eIsSettingToDialog
@ eIsSettingToDialog
Definition: ShuttleGui.h:38
Effect::AddAnalysisTrack
std::shared_ptr< AddedAnalysisTrack > AddAnalysisTrack(const wxString &name=wxString())
Definition: Effect.cpp:2134
LabelTrack::AddLabel
int AddLabel(const SelectedRegion &region, const wxString &title)
Definition: LabelTrack.cpp:930
WaveTrack::Get
bool Get(samplePtr buffer, sampleFormat format, sampleCount start, size_t len, fillFormat fill=fillZero, bool mayThrow=true, sampleCount *pNumWithinClips=nullptr) const
Definition: WaveTrack.cpp:1895
limitSampleBufferSize
size_t limitSampleBufferSize(size_t bufferSize, sampleCount limit)
Definition: Types.h:698
ReadAndVerifyInt
#define ReadAndVerifyInt(name)
Definition: Effect.h:631
samplePtr
char * samplePtr
Definition: Types.h:729
XXO
#define XXO(s)
Definition: Internat.h:45
Effect::inputTracks
const TrackList * inputTracks() const
Definition: Effect.h:462
Effect::mT0
double mT0
Definition: Effect.h:465
sampleCount::as_double
double as_double() const
Definition: Types.h:608
EffectFindClipping::mStop
int mStop
Using int rather than sampleCount because values are only ever small numbers.
Definition: FindClipping.h:60
WaveTrack::LongSamplesToTime
double LongSamplesToTime(sampleCount pos) const
Convert correctly between a number of samples and an (absolute) time in seconds.
Definition: WaveTrack.cpp:1772
ShuttleGuiBase::StartMultiColumn
void StartMultiColumn(int nCols, int PositionFlags=wxALIGN_LEFT)
Definition: ShuttleGui.cpp:1203
name
const TranslatableString name
Definition: Distortion.cpp:98
ShuttleGui::Validator
ShuttleGui & Validator(const Factory &f)
Definition: ShuttleGui.h:685
EffectFindClipping::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: FindClipping.h:24
Effect::ModifiedAnalysisTrack::Commit
void Commit()
Definition: Effect.cpp:2169
Effect::ModifiedAnalysisTrack::get
LabelTrack * get() const
Definition: Effect.h:422
Track
Abstract base class for an object holding data associated with points on a time axis.
Definition: Track.h:238
Effect::mUIParent
wxWindow * mUIParent
Definition: Effect.h:477
_
#define _(s)
Definition: Internat.h:76
EffectTypeAnalyze
@ EffectTypeAnalyze
Definition: EffectInterface.h:60
TrackList::Any
auto Any() -> TrackIterRange< TrackType >
Definition: Track.h:1354
TrackList::Selected
auto Selected() -> TrackIterRange< TrackType >
Definition: Track.h:1371
Effect::TrackProgress
bool TrackProgress(int whichTrack, double frac, const TranslatableString &={})
Definition: Effect.cpp:2024
ArrayOf< float >
MAX_AUDIO
#define MAX_AUDIO
Definition: MemoryX.h:723
EffectFindClipping::mStart
int mStart
Using int rather than sampleCount because values are only ever small numbers.
Definition: FindClipping.h:59
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:638
Effect::AddedAnalysisTrack::Commit
void Commit()
Definition: Effect.cpp:2121
SelectedRegion
Defines a selected portion of a project.
Definition: SelectedRegion.h:38
EffectFindClipping::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition: FindClipping.cpp:243