Audacity 3.2.0
Functions
TimeAndPitchExperimentalSettings Namespace Reference

Functions

std::string GetLogDir ()
 
std::optional< int > GetLogSample (int sampleRate)
 
std::optional< double > GetCutoffQuefrencyOverride ()
 
std::optional< int > GetFftSizeOverride ()
 
std::optional< bool > GetReduceImagingOverride ()
 

Detailed Description


Audacity: A Digital Audio Editor

TimeAndPitchExperimentalSettings.h

Matthieu Hodgkinson

Function Documentation

◆ GetCutoffQuefrencyOverride()

std::optional< double > TimeAndPitchExperimentalSettings::GetCutoffQuefrencyOverride ( )

Definition at line 52 of file TimeAndPitchExperimentalSettings.cpp.

53{
54 return GetFromFile<double>("overrideCutoffQuefrency");
55}

◆ GetFftSizeOverride()

std::optional< int > TimeAndPitchExperimentalSettings::GetFftSizeOverride ( )

Definition at line 57 of file TimeAndPitchExperimentalSettings.cpp.

58{
59 if (const auto fftSizeExponent = GetFromFile<int>("overrideFftSizeExponent"))
60 return 1 << *fftSizeExponent;
61 return {};
62}

Referenced by anonymous_namespace{StaffPadTimeAndPitch.cpp}::GetFftSize().

Here is the caller graph for this function:

◆ GetLogDir()

std::string TimeAndPitchExperimentalSettings::GetLogDir ( )

Definition at line 38 of file TimeAndPitchExperimentalSettings.cpp.

39{
40 return FileNames::ConfigDir().ToStdString() + "/TimeAndPitchTuning/";
41}
FILES_API FilePath ConfigDir()
Audacity user config directory.

References FileNames::ConfigDir().

Referenced by anonymous_namespace{TimeAndPitchExperimentalSettings.cpp}::GetFromFile(), and FormantShifterLogger::NewSamplesComing().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLogSample()

std::optional< int > TimeAndPitchExperimentalSettings::GetLogSample ( int  sampleRate)

Definition at line 44 of file TimeAndPitchExperimentalSettings.cpp.

45{
46 if (const auto logTime = GetFromFile<double>("overrideLogTime"))
47 return static_cast<int>(*logTime * sampleRate);
48 return {};
49}

References anonymous_namespace{ClipSegmentTest.cpp}::sampleRate.

Referenced by anonymous_namespace{StaffPadTimeAndPitch.cpp}::GetFormantShifterLogger().

Here is the caller graph for this function:

◆ GetReduceImagingOverride()

std::optional< bool > TimeAndPitchExperimentalSettings::GetReduceImagingOverride ( )

Definition at line 64 of file TimeAndPitchExperimentalSettings.cpp.

65{
66 if (const auto reduceImaging = GetFromFile<int>("overrideReduceImaging"))
67 return static_cast<bool>(*reduceImaging);
68 return {};
69}

Referenced by anonymous_namespace{StaffPadTimeAndPitch.cpp}::CreateTimeAndPitch().

Here is the caller graph for this function: