9 static constexpr wchar_t DefaultSequence[] = L
"audacity";
10 static constexpr double DefaultDutyCycle = 55.0;
11 static constexpr double DefaultAmplitude = 0.8;
13 wxString dtmfSequence { DefaultSequence };
15 dtmfSequence.length();
17 double dtmfSilence {};
18 double dtmfDutyCycle {
21 double dtmfAmplitude {
34 static constexpr std::array<char, 6 * 7> kSymbols {
35 '0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'*',
'#',
'A',
'B',
36 'C',
'D',
'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
37 'm',
'n',
'o',
'p',
'q',
'r',
's',
't',
'u',
'v',
'w',
'x',
'y',
'z'
62 bool ProcessInitialize(
67 float*
const* outBlock,
size_t blockLen)
override;
80 double mSampleRate {};
93 std::shared_ptr<EffectInstance> MakeInstance()
const override;
98 static bool MakeDtmfTone(
99 float* buffer,
size_t len,
float fs, wxChar tone,
sampleCount last,
static Settings & settings()
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
static const ComponentInterfaceSymbol Symbol
Inherit to add a state variable to an EffectInstance subclass.
Interface for manipulations of an Effect's settings.
Base class for many of the effects in Audacity.
A WaveTrack contains WaveClip(s). A WaveClip contains a Sequence. A Sequence is primarily an interfac...
Holds a msgid for the translation catalog; may also bind format arguments.
Positions or offsets within audio files need a wide type.
constexpr auto sampleRate
Temporary state of the computation.
unsigned GetAudioOutCount() const override
How many output buffers to allocate at once.
sampleCount numSamplesSilence
sampleCount numSamplesSequence
sampleCount numSamplesTone
Instance(const PerTrackEffect &effect, double t0)
unsigned GetAudioInCount() const override
How many input buffers to allocate at once.
static constexpr double DefaultDutyCycle
static constexpr double DefaultAmplitude
static constexpr wchar_t DefaultSequence[]
Externalized state of a plug-in.