Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 724:5d3a6ecdf2db
Unclamped
author | Chris Cannam |
---|---|
date | Thu, 06 Feb 2014 15:31:46 +0000 |
parents | 67e6d518ac27 |
children | 410816717c2c |
comparison
equal
deleted
inserted
replaced
719:67e6d518ac27 | 724:5d3a6ecdf2db |
---|---|
3457 ++n; | 3457 ++n; |
3458 } | 3458 } |
3459 | 3459 |
3460 return n; | 3460 return n; |
3461 } | 3461 } |
3462 | |
3463 virtual int getPositionForValueUnclamped(float value) const { | |
3464 // We don't really support this | |
3465 return getPositionForValue(value); | |
3466 } | |
3462 | 3467 |
3463 virtual float getValueForPosition(int position) const { | 3468 virtual float getValueForPosition(int position) const { |
3464 | 3469 |
3465 // Vertical zoom step 0 shows the entire range from DC -> | 3470 // Vertical zoom step 0 shows the entire range from DC -> |
3466 // Nyquist frequency. Step 1 shows 2^(1/4) of the range of | 3471 // Nyquist frequency. Step 1 shows 2^(1/4) of the range of |
3476 } | 3481 } |
3477 | 3482 |
3478 return dist; | 3483 return dist; |
3479 } | 3484 } |
3480 | 3485 |
3486 virtual float getValueForPositionUnclamped(int position) const { | |
3487 // We don't really support this | |
3488 return getValueForPosition(position); | |
3489 } | |
3490 | |
3481 virtual QString getUnit() const { return "Hz"; } | 3491 virtual QString getUnit() const { return "Hz"; } |
3482 | 3492 |
3483 protected: | 3493 protected: |
3484 float m_dist; | 3494 float m_dist; |
3485 float m_s2; | 3495 float m_s2; |