Audacity 3.2.0
|
#include <EqualizationBandSliders.h>
Public Member Functions | |
EqualizationBandSliders (EqualizationCurvesList &curvesList) | |
void | Init () |
void | AddBandSliders (ShuttleGui &S) |
void | Flatten () |
void | GraphicEQ (Envelope &env) |
void | Invert () |
void | EnvLogToLin () |
void | EnvLinToLog () |
void | ErrMin () |
Private Member Functions | |
template<typename EventTag , typename Class , typename Event > | |
void | BindTo (wxEvtHandler &src, const EventTag &eventType, void(Class::*pmf)(Event &)) |
void | OnErase (wxEvent &event) |
void | OnSlider (wxCommandEvent &event) |
Static Private Member Functions | |
static void | spline (double x[], double y[], size_t n, double y2[]) |
static double | splint (double x[], double y[], size_t n, double y2[], double xr) |
Private Attributes | |
double | mWhens [NUM_PTS] {} |
double | mWhenSliders [NUMBER_OF_BANDS+1] {} |
size_t | mBandsInUse { NUMBER_OF_BANDS } |
int | mSlidersOld [NUMBER_OF_BANDS] {} |
double | mEQVals [NUMBER_OF_BANDS+1] {} |
wxSlider * | mSliders [NUMBER_OF_BANDS] {} |
EqualizationCurvesList & | mCurvesList |
Definition at line 25 of file EqualizationBandSliders.h.
EqualizationBandSliders::EqualizationBandSliders | ( | EqualizationCurvesList & | curvesList | ) |
Definition at line 29 of file EqualizationBandSliders.cpp.
References mEQVals, mWhens, mWhenSliders, NUM_PTS, and NUMBER_OF_BANDS.
void EqualizationBandSliders::AddBandSliders | ( | ShuttleGui & | S | ) |
Definition at line 50 of file EqualizationBandSliders.cpp.
References BindTo(), TranslatableString::Format(), kThirdOct, mEQVals, mSliders, mSlidersOld, NUMBER_OF_BANDS, OnErase(), OnSlider(), S, safenew, Verbatim(), and XO().
Referenced by EqualizationUI::PopulateOrExchange().
|
inlineprivate |
Definition at line 56 of file EqualizationBandSliders.h.
Referenced by AddBandSliders().
void EqualizationBandSliders::EnvLinToLog | ( | void | ) |
Definition at line 153 of file EqualizationBandSliders.cpp.
References EqualizationCurvesList::EnvelopeUpdated(), Envelope::GetNumberOfPoints(), mCurvesList, EqualizationFilter::mLinEnvelope, and EqualizationCurvesList::mParameters.
Referenced by Invert(), EqualizationUI::OnLinFreq(), and EqualizationUI::UpdateGraphic().
void EqualizationBandSliders::EnvLogToLin | ( | void | ) |
Definition at line 124 of file EqualizationBandSliders.cpp.
References Envelope::GetNumberOfPoints(), mCurvesList, EqualizationFilter::mLinEnvelope, and EqualizationCurvesList::mParameters.
Referenced by Invert(), EqualizationUI::OnLinFreq(), and EqualizationUI::UpdateDraw().
void EqualizationBandSliders::ErrMin | ( | void | ) |
Definition at line 200 of file EqualizationBandSliders.cpp.
References EqualizationCurvesList::EnvelopeUpdated(), flag, Envelope::GetValue(), GraphicEQ(), kThirdOct, lrint, mBandsInUse, EqualizationCurvesList::mCurves, mCurvesList, mEQVals, EqualizationFilter::mLogEnvelope, EqualizationCurvesList::mParameters, mSliders, mSlidersOld, mWhens, mWhenSliders, NUM_PTS, EqualizationCurvesList::Select(), and wxT().
Referenced by EqualizationUI::UpdateGraphic().
void EqualizationBandSliders::Flatten | ( | ) |
Definition at line 93 of file EqualizationBandSliders.cpp.
References EqualizationCurvesList::EnvelopeUpdated(), EqualizationCurvesList::ForceRecalc(), kThirdOct, mBandsInUse, mCurvesList, EqualizationParameters::mDrawMode, mEQVals, EqualizationCurvesList::mParameters, mSliders, mSlidersOld, and wxT().
Referenced by EqualizationUI::OnClear().
void EqualizationBandSliders::GraphicEQ | ( | Envelope & | env | ) |
Definition at line 310 of file EqualizationBandSliders.cpp.
References Envelope::Flatten(), EqualizationCurvesList::ForceRecalc(), Envelope::Insert(), EqualizationParameters::kBspline, EqualizationParameters::kCosine, EqualizationParameters::kCubic, M_PI, mBandsInUse, mCurvesList, mEQVals, EqualizationParameters::mInterp, EqualizationCurvesList::mParameters, mWhens, mWhenSliders, NUM_PTS, NUMBER_OF_BANDS, Envelope::Reassign(), Envelope::SetTrackLen(), spline(), and splint().
Referenced by ErrMin(), Invert(), EqualizationUI::OnInterp(), OnSlider(), and EqualizationUI::UpdateGraphic().
void EqualizationBandSliders::Init | ( | ) |
Definition at line 40 of file EqualizationBandSliders.cpp.
References kThirdOct, mBandsInUse, mCurvesList, EqualizationFilter::mHiFreq, EqualizationCurvesList::mParameters, and NUMBER_OF_BANDS.
Referenced by EqualizationUI::PopulateOrExchange().
void EqualizationBandSliders::Invert | ( | ) |
Definition at line 541 of file EqualizationBandSliders.cpp.
References EqualizationCurvesList::EnvelopeUpdated(), EnvLinToLog(), EnvLogToLin(), EqualizationCurvesList::ForceRecalc(), GraphicEQ(), kThirdOct, mBandsInUse, mCurvesList, mEQVals, EqualizationFilter::mLinEnvelope, EqualizationCurvesList::mParameters, mSliders, mSlidersOld, and wxT().
Referenced by EqualizationUI::OnInvert().
|
private |
Definition at line 496 of file EqualizationBandSliders.cpp.
Referenced by AddBandSliders().
|
private |
Definition at line 500 of file EqualizationBandSliders.cpp.
References EqualizationCurvesList::EnvelopeUpdated(), GraphicEQ(), kThirdOct, mBandsInUse, mCurvesList, mEQVals, EqualizationFilter::mLogEnvelope, EqualizationCurvesList::mParameters, mSliders, mSlidersOld, and wxT().
Referenced by AddBandSliders().
|
staticprivate |
Definition at line 451 of file EqualizationBandSliders.cpp.
Referenced by GraphicEQ().
|
staticprivate |
Definition at line 474 of file EqualizationBandSliders.cpp.
Referenced by GraphicEQ().
|
private |
Definition at line 41 of file EqualizationBandSliders.h.
Referenced by ErrMin(), Flatten(), GraphicEQ(), Init(), Invert(), and OnSlider().
|
private |
Definition at line 48 of file EqualizationBandSliders.h.
Referenced by EnvLinToLog(), EnvLogToLin(), ErrMin(), Flatten(), GraphicEQ(), Init(), Invert(), and OnSlider().
|
private |
Definition at line 44 of file EqualizationBandSliders.h.
Referenced by AddBandSliders(), EqualizationBandSliders(), ErrMin(), Flatten(), GraphicEQ(), Invert(), and OnSlider().
|
private |
Definition at line 46 of file EqualizationBandSliders.h.
Referenced by AddBandSliders(), ErrMin(), Flatten(), Invert(), and OnSlider().
|
private |
Definition at line 43 of file EqualizationBandSliders.h.
Referenced by AddBandSliders(), ErrMin(), Flatten(), Invert(), and OnSlider().
|
private |
Definition at line 39 of file EqualizationBandSliders.h.
Referenced by EqualizationBandSliders(), ErrMin(), and GraphicEQ().
|
private |
Definition at line 40 of file EqualizationBandSliders.h.
Referenced by EqualizationBandSliders(), ErrMin(), and GraphicEQ().