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

Method GetScale

libraries/lib-wave-track-settings/SpectrogramSettings.cpp:748–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746}
747
748NumberScale SpectrogramSettings::GetScale( float minFreqIn, float maxFreqIn ) const
749{
750 NumberScaleType type = nstLinear;
751
752 // Don't assume the correspondence of the enums will remain direct in the future.
753 // Do this switch.
754 switch (scaleType) {
755 default:
756 wxASSERT(false);
757 case stLinear:
758 type = nstLinear; break;
759 case stLogarithmic:
760 type = nstLogarithmic; break;
761 case stMel:
762 type = nstMel; break;
763 case stBark:
764 type = nstBark; break;
765 case stErb:
766 type = nstErb; break;
767 case stPeriod:
768 type = nstPeriod; break;
769 }
770
771 return NumberScale(type, minFreqIn, maxFreqIn);
772}
773
774bool SpectrogramSettings::SpectralSelectionEnabled() const
775{

Callers 8

DrawClipSpectrumFunction · 0.80
DoZoomMethod · 0.80
DoHandleWheelRotationMethod · 0.80
DoUpdateVRulerMethod · 0.80
FrequencyToPositionFunction · 0.80
PositionToFrequencyFunction · 0.80
FrequencyToPositionFunction · 0.80
PositionToFrequencyFunction · 0.80

Calls 1

NumberScaleClass · 0.70

Tested by

no test coverage detected