21#include "../widgets/NumericTextCtrl.h"
25{
XC(
"Silence",
"generator") };
47 return XO(
"Creates audio of zero amplitude");
71 S.StartHorizontalLay();
73 S.AddPrompt(
XXO(
"&Duration:"));
77 S.GetParent(), wxID_ANY,
79 extra.GetDurationFormat(),
83 S.Name(
XO(
"Duration"))
84 .Position(wxALIGN_CENTER | wxALL)
112 ->InsertSilence(0.0,
settings.extra.GetDuration());
XXO("&Cut/Copy/Paste Toolbar")
const NumericConverterType & NumericConverterType_TIME()
static Settings & settings()
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
void SetLinearEffectFlag(bool linearEffectFlag)
Performs effect computation.
Hold values to send to effect output meters.
virtual const EffectSettings & Get()=0
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
ComponentInterfaceSymbol GetSymbol() const override
bool TransferDataFromWindow(EffectSettings &settings) override
EffectType GetType() const override
Type determines how it behaves.
ManualPageID ManualPage() const override
Name of a page in the Audacity alpha manual, default is empty.
NumericTextCtrl * mDurationT
static const ComponentInterfaceSymbol Symbol
bool GenerateTrack(const EffectSettings &settings, TrackList &tmp) override
GenerateTrack() must be overridden by the actual generator class.
TranslatableString GetDescription() const override
bool TransferDataToWindow(const EffectSettings &settings) override
static FormatterContext SampleRateContext(double sampleRate)
void SetValue(double newValue)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...
auto Any() -> TrackIterRange< TrackType >
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
auto begin(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
BuiltinEffectsModule::Registration< EffectSilence > reg
Externalized state of a plug-in.
EffectSettingsExtra extra
Options & AutoPos(bool enable)