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

Function findMaxRatio

src/tracks/ui/SelectHandle.cpp:486–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484 }
485
486 inline double findMaxRatio(double center, double rate)
487 {
488 const double minFrequency = 1.0;
489 const double maxFrequency = (rate / 2.0);
490 const double frequency =
491 std::min(maxFrequency,
492 std::max(minFrequency, center));
493 return
494 std::min(frequency / minFrequency, maxFrequency / frequency);
495 }
496}
497
498void SelectHandle::Enter(bool, AudacityProject *project)

Callers 3

AdjustFreqSelectionMethod · 0.70
SnapCenterOnceMethod · 0.70

Calls 2

maxFunction · 0.85
minFunction · 0.50

Tested by

no test coverage detected