Audacity 3.2.0
|
#include <FormantShifterLogger.h>
Public Member Functions | |
FormantShifterLogger (int sampleRate, int logTimeInSamples) | |
~FormantShifterLogger () override | |
void | NewSamplesComing (int sampleCount) override |
void | Log (int value, const char *name) const override |
void | Log (const float *samples, size_t size, const char *name) const override |
void | Log (const std::complex< float > *samples, size_t size, const char *name, const std::function< float(const std::complex< float > &)> &transform) const override |
void | ProcessFinished (std::complex< float > *spectrum, size_t fftSize) override |
If not already, disables the logging and marks the spectrum with an audible event to make clear where in the signal the logging took place. (Of course not for use in production :D) More... | |
Public Member Functions inherited from FormantShifterLoggerInterface | |
virtual | ~FormantShifterLoggerInterface ()=default |
virtual void | NewSamplesComing (int sampleCount)=0 |
virtual void | Log (int value, const char *name) const =0 |
virtual void | Log (const float *samples, size_t size, const char *name) const =0 |
virtual void | Log (const std::complex< float > *samples, size_t size, const char *name, const std::function< float(const std::complex< float > &)> &transform) const =0 |
virtual void | ProcessFinished (std::complex< float > *spectrum, size_t fftSize)=0 |
If not already, disables the logging and marks the spectrum with an audible event to make clear where in the signal the logging took place. (Of course not for use in production :D) More... | |
Private Attributes | |
const int | mSampleRate |
const int | mLogSample |
bool | mWasLogged = false |
std::unique_ptr< std::ofstream > | mOfs |
int | mSampleCount = 0 |
Audacity: A Digital Audio Editor
Implements FormantShifterLoggerInterface, and also provides tuning utilities to override algorithm parameters.
Matthieu Hodgkinson
Definition at line 20 of file FormantShifterLogger.h.
FormantShifterLogger::FormantShifterLogger | ( | int | sampleRate, |
int | logTimeInSamples | ||
) |
Definition at line 38 of file FormantShifterLogger.cpp.
|
override |
Definition at line 44 of file FormantShifterLogger.cpp.
|
overridevirtual |
Implements FormantShifterLoggerInterface.
Definition at line 68 of file FormantShifterLogger.cpp.
References mOfs, name, anonymous_namespace{FormantShifterLogger.cpp}::PrintPythonVector(), and size.
|
overridevirtual |
Implements FormantShifterLoggerInterface.
Definition at line 77 of file FormantShifterLogger.cpp.
References mOfs, name, and anonymous_namespace{FormantShifterLogger.cpp}::PrintPythonVector().
|
overridevirtual |
Implements FormantShifterLoggerInterface.
Definition at line 62 of file FormantShifterLogger.cpp.
|
overridevirtual |
Implements FormantShifterLoggerInterface.
Definition at line 48 of file FormantShifterLogger.cpp.
References TimeAndPitchExperimentalSettings::GetLogDir(), mLogSample, mOfs, mSampleCount, mSampleRate, and mWasLogged.
|
overridevirtual |
If not already, disables the logging and marks the spectrum with an audible event to make clear where in the signal the logging took place. (Of course not for use in production :D)
Implements FormantShifterLoggerInterface.
Definition at line 88 of file FormantShifterLogger.cpp.
References mOfs.
|
private |
Definition at line 45 of file FormantShifterLogger.h.
Referenced by NewSamplesComing().
|
private |
Definition at line 47 of file FormantShifterLogger.h.
Referenced by Log(), NewSamplesComing(), and ProcessFinished().
|
private |
Definition at line 48 of file FormantShifterLogger.h.
Referenced by NewSamplesComing().
|
private |
Definition at line 44 of file FormantShifterLogger.h.
Referenced by NewSamplesComing().
|
private |
Definition at line 46 of file FormantShifterLogger.h.
Referenced by NewSamplesComing().