Audacity 3.2.0
|
Go to the source code of this file.
Enumerations | |
enum class | PitchNameChoice { Sharps , Flats , Both } |
Functions | |
AUDACITY_DLL_API double | FreqToMIDInote (const double freq) |
AUDACITY_DLL_API double | MIDInoteToFreq (const double dMIDInote) |
AUDACITY_DLL_API unsigned int | PitchIndex (const double dMIDInote) |
AUDACITY_DLL_API int | PitchOctave (const double dMIDInote) |
AUDACITY_DLL_API TranslatableString | PitchName (const double dMIDInote, const PitchNameChoice choice=PitchNameChoice::Sharps) |
AUDACITY_DLL_API TranslatableString | PitchName_Absolute (const double dMIDInote, const PitchNameChoice choice=PitchNameChoice::Sharps) |
AUDACITY_DLL_API double | PitchToMIDInote (const unsigned int nPitchIndex, const int nPitchOctave) |
AUDACITY_DLL_API double | PitchToFreq (const unsigned int nPitchIndex, const int nPitchOctave) |
|
strong |
AUDACITY_DLL_API double FreqToMIDInote | ( | const double | freq | ) |
Definition at line 28 of file PitchName.cpp.
Referenced by FrequencyPlotDialog::PlotPaint().
AUDACITY_DLL_API double MIDInoteToFreq | ( | const double | dMIDInote | ) |
Definition at line 34 of file PitchName.cpp.
Referenced by PitchToFreq().
AUDACITY_DLL_API unsigned int PitchIndex | ( | const double | dMIDInote | ) |
Definition at line 39 of file PitchName.cpp.
Referenced by PitchName().
AUDACITY_DLL_API TranslatableString PitchName | ( | const double | dMIDInote, |
const PitchNameChoice | choice = PitchNameChoice::Sharps |
||
) |
Definition at line 59 of file PitchName.cpp.
References Both, Flats, PitchIndex(), Sharps, and XO().
Referenced by PitchName_Absolute().
AUDACITY_DLL_API TranslatableString PitchName_Absolute | ( | const double | dMIDInote, |
const PitchNameChoice | choice = PitchNameChoice::Sharps |
||
) |
Definition at line 153 of file PitchName.cpp.
References TranslatableString::Format(), PitchName(), PitchOctave(), Verbatim(), and wxT().
Referenced by FrequencyPlotDialog::PlotPaint().
AUDACITY_DLL_API int PitchOctave | ( | const double | dMIDInote | ) |
Definition at line 52 of file PitchName.cpp.
Referenced by PitchName_Absolute().
AUDACITY_DLL_API double PitchToFreq | ( | const unsigned int | nPitchIndex, |
const int | nPitchOctave | ||
) |
Definition at line 165 of file PitchName.cpp.
References MIDInoteToFreq(), and PitchToMIDInote().
AUDACITY_DLL_API double PitchToMIDInote | ( | const unsigned int | nPitchIndex, |
const int | nPitchOctave | ||
) |
Definition at line 160 of file PitchName.cpp.
Referenced by PitchToFreq().