diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-02 15:16:00 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-02 15:16:00 +0200 |
commit | 52f81e6e8ef4d80b006a3063afabb4fc4b60e594 (patch) | |
tree | 338ad22c0c022bddd9341a7ffeb2bb044e3ae699 /dgedit/volumefader.cc | |
parent | 2b055b728ac0c58eb571413e7aba31dd3b90f685 (diff) | |
parent | 7ec14ac0fa7e95dda01d396edbd190a8aeb78b2b (diff) |
Merge branch 'master' of http://git.drumgizmo.org/drumgizmo
Diffstat (limited to 'dgedit/volumefader.cc')
-rw-r--r-- | dgedit/volumefader.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dgedit/volumefader.cc b/dgedit/volumefader.cc index 33b1f57..08bab80 100644 --- a/dgedit/volumefader.cc +++ b/dgedit/volumefader.cc @@ -61,13 +61,14 @@ VolumeFader::~VolumeFader() } -void VolumeFader::updatePeakDb(double) +void VolumeFader::updatePeakDb(double db) { +// updatePeakPower(pow(10, db/20)); } void VolumeFader::updatePeakPower(double newpeak) { - peak = (newpeak * (1-P) + peak * P); + peak = (newpeak * (1.0-P) + peak * P); volumepeak->setText("Peak " + QString::number(peak, 'f', 5)); handleValueChanged(); } |