Audacity 3.2.0
Functions
anonymous_namespace{FormantShifterLogger.cpp} Namespace Reference

Functions

std::string GetLogDir ()
 
template<typename Iterator >
void PrintPythonVector (std::ofstream &ofs, Iterator begin, Iterator end, const char *name)
 

Detailed Description


Audacity: A Digital Audio Editor

FormantShifterLogger.cpp

Matthieu Hodgkinson

Function Documentation

◆ GetLogDir()

std::string anonymous_namespace{FormantShifterLogger.cpp}::GetLogDir ( )

Definition at line 19 of file FormantShifterLogger.cpp.

20{
21 const char* appDataDir = getenv("APPDATA");
22 if (appDataDir)
23 return std::string(appDataDir) + "/TimeAndPitchTuning";
24 else
25 return "";
26}

◆ PrintPythonVector()

template<typename Iterator >
void anonymous_namespace{FormantShifterLogger.cpp}::PrintPythonVector ( std::ofstream &  ofs,
Iterator  begin,
Iterator  end,
const char *  name 
)

Definition at line 29 of file FormantShifterLogger.cpp.

31{
32 ofs << name << " = [";
33 std::for_each(begin, end, [&](float x) { ofs << x << ","; });
34 ofs << "]\n";
35}
wxString name
Definition: TagsEditor.cpp:166
const char * end(const char *str) noexcept
Definition: StringUtils.h:106
const char * begin(const char *str) noexcept
Definition: StringUtils.h:101

References details::begin(), details::end(), and name.

Referenced by FormantShifterLogger::Log().

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