MCPcopy Create free account
hub / github.com/audacity/audacity / PitchOctave

Function PitchOctave

libraries/lib-math/PitchName.cpp:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int PitchOctave(const double dMIDInote)
48{
49 double dRound = (dMIDInote < 0.0) ? -0.5 : 0.5;
50 return ((int)((dMIDInote + dRound) / 12.0) - 1);
51}
52
53
54TranslatableString PitchName(const double dMIDInote, const PitchNameChoice choice)

Callers 4

PitchName_AbsoluteFunction · 0.85
DeduceFrequenciesMethod · 0.85
Calc_ToOctaveMethod · 0.85
OnText_FromFrequencyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected