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