11#ifndef __AUDACITY_EFFECT_AUTODUCK__
12#define __AUDACITY_EFFECT_AUTODUCK__
24#define AUTO_DUCK_PANEL_NUM_CONTROL_POINTS 5
80 void OnPaint(wxPaintEvent & evt);
100 DECLARE_EVENT_TABLE()
#define AUTO_DUCK_PANEL_NUM_CONTROL_POINTS
static Settings & settings()
Implements the Auto Ducking effect.
std::unique_ptr< wxBitmap > mBackgroundBitmap
EControlPoint GetNearestControlPoint(const wxPoint &pt)
bool mControlPointMoveActivated
void OnMotion(wxMouseEvent &evt)
Panel(wxWindow *parent, wxWindowID winid, EffectAutoDuck *effect)
bool AcceptsFocusFromKeyboard() const override
void OnLeftDown(wxMouseEvent &evt)
EControlPoint mCurrentControlPoint
void OnMouseCaptureChanged(wxMouseCaptureChangedEvent &evt)
void OnLeftUp(wxMouseEvent &evt)
bool AcceptsFocus() const override
void ResetControlPoints()
void OnPaint(wxPaintEvent &evt)
void OnMouseCaptureLost(wxMouseCaptureLostEvent &evt)
wxPoint mMoveStartControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
wxPoint mControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
wxTextCtrl * mInnerFadeUpLenBox
wxTextCtrl * mInnerFadeDownLenBox
wxTextCtrl * mOuterFadeDownLenBox
bool DoTransferDataToWindow()
wxTextCtrl * mThresholdDbBox
wxWeakRef< wxWindow > mUIParent
bool TransferDataToWindow(const EffectSettings &settings) override
void OnValueChanged(wxCommandEvent &evt)
bool TransferDataFromWindow(EffectSettings &settings) override
wxTextCtrl * mMaximumPauseBox
wxTextCtrl * mOuterFadeUpLenBox
wxTextCtrl * mDuckAmountDbBox
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
Performs effect computation.
Hold values to send to effect output meters.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Externalized state of a plug-in.