Audacity 3.2.0
|
Public Types | |
typedef NoiseReductionBase::Settings | Settings |
typedef NoiseReductionBase::Statistics | Statistics |
Public Member Functions | |
Worker (NoiseReductionBase &effect, const Settings &settings, Statistics &statistics) | |
~Worker () | |
bool | Process (eWindowFunctions inWindowType, eWindowFunctions outWindowType, TrackList &tracks, double mT0, double mT1) |
void | ApplyFreqSmoothing (FloatVector &gains) |
void | GatherStatistics (MyTransformer &transformer) |
bool | Classify (MyTransformer &transformer, unsigned nWindows, int band) |
void | ReduceNoise (MyTransformer &transformer) |
void | FinishTrackStatistics () |
Static Public Member Functions | |
static bool | Processor (SpectrumTransformer &transformer) |
Public Attributes | |
const bool | mDoProfile |
NoiseReductionBase & | mEffect |
const Settings & | mSettings |
Statistics & | mStatistics |
FloatVector | mFreqSmoothingScratch |
const size_t | mFreqSmoothingBins |
size_t | mBinLow |
size_t | mBinHigh |
const int | mNoiseReductionChoice |
const int | mMethod |
const double | mNewSensitivity |
float | mOneBlockAttack |
float | mOneBlockRelease |
float | mNoiseAttenFactor |
float | mOldSensitivityFactor |
unsigned | mNWindowsToExamine |
unsigned | mCenter |
unsigned | mHistoryLen |
unsigned | mProgressTrackCount = 0 |
sampleCount | mLen = 0 |
sampleCount | mProgressWindowCount = 0 |
Definition at line 229 of file NoiseReductionBase.cpp.
Definition at line 232 of file NoiseReductionBase.cpp.
Definition at line 233 of file NoiseReductionBase.cpp.
NoiseReductionBase::Worker::Worker | ( | NoiseReductionBase & | effect, |
const Settings & | settings, | ||
Statistics & | statistics | ||
) |
Definition at line 683 of file NoiseReductionBase.cpp.
References DB_TO_LINEAR, anonymous_namespace{NoiseReductionBase.cpp}::DM_OLD_METHOD, NoiseReductionBase::Settings::mAttackTime, mBinHigh, mBinLow, mCenter, mDoProfile, mHistoryLen, anonymous_namespace{NoiseReductionBase.cpp}::minSignalTime, mMethod, mNoiseAttenFactor, NoiseReductionBase::Settings::mNoiseGain, mNWindowsToExamine, NoiseReductionBase::Settings::mOldSensitivity, mOldSensitivityFactor, mOneBlockAttack, mOneBlockRelease, NoiseReductionBase::Statistics::mRate, NoiseReductionBase::Settings::mReleaseTime, mSettings, mStatistics, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, settings(), NoiseReductionBase::Settings::StepSize(), and NoiseReductionBase::Settings::StepsPerWindow().
NoiseReductionBase::Worker::~Worker | ( | ) |
Definition at line 553 of file NoiseReductionBase.cpp.
void NoiseReductionBase::Worker::ApplyFreqSmoothing | ( | FloatVector & | gains | ) |
Definition at line 648 of file NoiseReductionBase.cpp.
References min(), and NoiseReductionBase::mSettings.
|
inline |
Definition at line 866 of file NoiseReductionBase.cpp.
References anonymous_namespace{NoiseReductionBase.cpp}::DM_MEDIAN, anonymous_namespace{NoiseReductionBase.cpp}::DM_OLD_METHOD, anonymous_namespace{NoiseReductionBase.cpp}::DM_SECOND_GREATEST, min(), MyTransformer::MyWindow::mSpectrums, NoiseReductionBase::mStatistics, MyTransformer::NthWindow(), and fast_float::detail::power().
void NoiseReductionBase::Worker::FinishTrackStatistics | ( | ) |
Definition at line 804 of file NoiseReductionBase.cpp.
References NoiseReductionBase::mStatistics.
void NoiseReductionBase::Worker::GatherStatistics | ( | MyTransformer & | transformer | ) |
Definition at line 827 of file NoiseReductionBase.cpp.
References min(), NoiseReductionBase::mSettings, MyTransformer::MyWindow::mSpectrums, NoiseReductionBase::mStatistics, and MyTransformer::NthWindow().
Referenced by Processor().
bool NoiseReductionBase::Worker::Process | ( | eWindowFunctions | inWindowType, |
eWindowFunctions | outWindowType, | ||
TrackList & | tracks, | ||
double | mT0, | ||
double | mT1 | ||
) |
Definition at line 557 of file NoiseReductionBase.cpp.
References details::end(), min(), NoiseReductionBase::mSettings, NoiseReductionBase::mStatistics, TrackSpectrumTransformer::PostProcess(), BasicUI::ShowMessageBox(), tracks, and XO().
|
static |
Definition at line 770 of file NoiseReductionBase.cpp.
References GatherStatistics(), min(), and MyTransformer::mWorker.
void NoiseReductionBase::Worker::ReduceNoise | ( | MyTransformer & | transformer | ) |
Definition at line 941 of file NoiseReductionBase.cpp.
References SpectrumTransformer::CurrentQueueSize(), MyTransformer::MyWindow::mGains, NoiseReductionBase::mSettings, NRC_ISOLATE_NOISE, NRC_LEAVE_RESIDUE, MyTransformer::NthWindow(), and SpectrumTransformer::QueueIsFull().
size_t NoiseReductionBase::Worker::mBinHigh |
Definition at line 268 of file NoiseReductionBase.cpp.
Referenced by Worker().
size_t NoiseReductionBase::Worker::mBinLow |
Definition at line 267 of file NoiseReductionBase.cpp.
Referenced by Worker().
unsigned NoiseReductionBase::Worker::mCenter |
Definition at line 280 of file NoiseReductionBase.cpp.
Referenced by Worker().
const bool NoiseReductionBase::Worker::mDoProfile |
Definition at line 258 of file NoiseReductionBase.cpp.
Referenced by Worker().
NoiseReductionBase& NoiseReductionBase::Worker::mEffect |
Definition at line 260 of file NoiseReductionBase.cpp.
const size_t NoiseReductionBase::Worker::mFreqSmoothingBins |
Definition at line 265 of file NoiseReductionBase.cpp.
FloatVector NoiseReductionBase::Worker::mFreqSmoothingScratch |
Definition at line 264 of file NoiseReductionBase.cpp.
unsigned NoiseReductionBase::Worker::mHistoryLen |
Definition at line 281 of file NoiseReductionBase.cpp.
Referenced by Worker().
sampleCount NoiseReductionBase::Worker::mLen = 0 |
Definition at line 285 of file NoiseReductionBase.cpp.
const int NoiseReductionBase::Worker::mMethod |
Definition at line 271 of file NoiseReductionBase.cpp.
Referenced by Worker().
const double NoiseReductionBase::Worker::mNewSensitivity |
Definition at line 272 of file NoiseReductionBase.cpp.
float NoiseReductionBase::Worker::mNoiseAttenFactor |
Definition at line 276 of file NoiseReductionBase.cpp.
Referenced by Worker().
const int NoiseReductionBase::Worker::mNoiseReductionChoice |
Definition at line 270 of file NoiseReductionBase.cpp.
unsigned NoiseReductionBase::Worker::mNWindowsToExamine |
Definition at line 279 of file NoiseReductionBase.cpp.
Referenced by Worker().
float NoiseReductionBase::Worker::mOldSensitivityFactor |
Definition at line 277 of file NoiseReductionBase.cpp.
Referenced by Worker().
float NoiseReductionBase::Worker::mOneBlockAttack |
Definition at line 274 of file NoiseReductionBase.cpp.
Referenced by Worker().
float NoiseReductionBase::Worker::mOneBlockRelease |
Definition at line 275 of file NoiseReductionBase.cpp.
Referenced by Worker().
unsigned NoiseReductionBase::Worker::mProgressTrackCount = 0 |
Definition at line 284 of file NoiseReductionBase.cpp.
sampleCount NoiseReductionBase::Worker::mProgressWindowCount = 0 |
Definition at line 286 of file NoiseReductionBase.cpp.
const Settings& NoiseReductionBase::Worker::mSettings |
Definition at line 261 of file NoiseReductionBase.cpp.
Referenced by Worker().
Statistics& NoiseReductionBase::Worker::mStatistics |
Definition at line 262 of file NoiseReductionBase.cpp.
Referenced by Worker().