Mercurial > hg > svgui
diff widgets/LevelPanWidget.h @ 1201:a68c25ba1153 levelpanwidget
Fix incorrect initial display levels in LevelPanWidget
author | Chris Cannam |
---|---|
date | Fri, 16 Dec 2016 19:35:57 +0000 |
parents | 808d375a3b12 |
children | 8ef67917c301 |
line wrap: on
line diff
--- a/widgets/LevelPanWidget.h Fri Dec 16 16:29:53 2016 +0000 +++ b/widgets/LevelPanWidget.h Fri Dec 16 19:35:57 2016 +0000 @@ -29,7 +29,8 @@ LevelPanWidget(QWidget *parent = 0); ~LevelPanWidget(); - /// Return level as a gain value in the range [0,1] + /// Return level as a gain value. The basic level range is [0,1] but the + /// gain scale may go up to 4.0 float getLevel() const; /// Return pan as a value in the range [-1,1] @@ -47,10 +48,11 @@ QSize sizeHint() const; public slots: - /// Set level in the range [0,1] -- will be rounded + /// Set level. The basic level range is [0,1] but the scale may go + /// higher. The value will be rounded. void setLevel(float); - /// Set pan in the range [-1,1] -- will be rounded + /// Set pan in the range [-1,1]. The value will be rounded void setPan(float); /// Set left and right peak monitoring levels in the range [0,1]