![]() |
Audacity 3.2.0
|
Utilities for converting from frequency to pitch and from pitch to absolute (e.g., C4 for middle C) or nominal (A through G#) pitch name. More...
Go to the source code of this file.
Functions | |
| double | FreqToMIDInote (const double freq) |
| double | MIDInoteToFreq (const double dMIDInote) |
| unsigned int | PitchIndex (const double dMIDInote) |
| int | PitchOctave (const double dMIDInote) |
| TranslatableString | PitchName (const double dMIDInote, const PitchNameChoice choice) |
| TranslatableString | PitchName_Absolute (const double dMIDInote, const PitchNameChoice choice) |
| double | PitchToMIDInote (const unsigned int nPitchIndex, const int nPitchOctave) |
| double | PitchToFreq (const unsigned int nPitchIndex, const int nPitchOctave) |
Utilities for converting from frequency to pitch and from pitch to absolute (e.g., C4 for middle C) or nominal (A through G#) pitch name.
Definition in file PitchName.cpp.
| double FreqToMIDInote | ( | const double | freq | ) |
Definition at line 23 of file PitchName.cpp.
Referenced by FrequencyPlotDialog::PlotPaint().
| double MIDInoteToFreq | ( | const double | dMIDInote | ) |
Definition at line 29 of file PitchName.cpp.
Referenced by PitchToFreq().
| unsigned int PitchIndex | ( | const double | dMIDInote | ) |
Definition at line 34 of file PitchName.cpp.
Referenced by PitchName().
| TranslatableString PitchName | ( | const double | dMIDInote, |
| const PitchNameChoice | choice | ||
| ) |
Definition at line 54 of file PitchName.cpp.
References Both, Flats, PitchIndex(), Sharps, and XO().
Referenced by PitchName_Absolute().
| TranslatableString PitchName_Absolute | ( | const double | dMIDInote, |
| const PitchNameChoice | choice | ||
| ) |
Definition at line 148 of file PitchName.cpp.
References TranslatableString::Format(), PitchName(), PitchOctave(), Verbatim(), and wxT().
Referenced by FrequencyPlotDialog::PlotPaint().
| int PitchOctave | ( | const double | dMIDInote | ) |
Definition at line 47 of file PitchName.cpp.
Referenced by PitchName_Absolute().
| double PitchToFreq | ( | const unsigned int | nPitchIndex, |
| const int | nPitchOctave | ||
| ) |
Definition at line 160 of file PitchName.cpp.
References MIDInoteToFreq(), and PitchToMIDInote().
| double PitchToMIDInote | ( | const unsigned int | nPitchIndex, |
| const int | nPitchOctave | ||
| ) |
Definition at line 155 of file PitchName.cpp.
Referenced by PitchToFreq().