| 746 | } |
| 747 | |
| 748 | NumberScale 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 | |
| 774 | bool SpectrogramSettings::SpectralSelectionEnabled() const |
| 775 | { |
no test coverage detected