Mercurial > hg > sonic-visualiser
comparison audioio/PlaySpeedRangeMapper.h @ 60:06b3c3f437e6
* Make audio dial remember its more accurate mapped value as well as its
display position
* Add tool tip support to audio dial to show values
author | Chris Cannam |
---|---|
date | Tue, 17 Oct 2006 13:04:49 +0000 |
parents | 1016a8ceceda |
children | bedc7517b6e8 |
comparison
equal
deleted
inserted
replaced
59:1016a8ceceda | 60:06b3c3f437e6 |
---|---|
24 PlaySpeedRangeMapper(int minpos, int maxpos); | 24 PlaySpeedRangeMapper(int minpos, int maxpos); |
25 | 25 |
26 virtual int getPositionForValue(float value) const; | 26 virtual int getPositionForValue(float value) const; |
27 virtual float getValueForPosition(int position) const; | 27 virtual float getValueForPosition(int position) const; |
28 | 28 |
29 int getPositionForFactor(float factor) const; | |
30 float getValueForFactor(float factor) const; | |
31 | |
29 float getFactorForPosition(int position) const; | 32 float getFactorForPosition(int position) const; |
30 float getFactorForValue(float value) const; | 33 float getFactorForValue(float value) const; |
31 | 34 |
32 virtual QString getUnit() const; | 35 virtual QString getUnit() const; |
33 | 36 |