comparison data/model/FFTModel.cpp @ 204:29b70bdaacdc

...
author Chris Cannam
date Tue, 12 Dec 2006 10:41:41 +0000
parents 2f2d282d45d0
children 522f82311e4e
comparison
equal deleted inserted replaced
203:11e107062a2b 204:29b70bdaacdc
97 QString 97 QString
98 FFTModel::getBinName(size_t n) const 98 FFTModel::getBinName(size_t n) const
99 { 99 {
100 size_t sr = getSampleRate(); 100 size_t sr = getSampleRate();
101 if (!sr) return ""; 101 if (!sr) return "";
102 QString name = tr("%1 Hz").arg((n * sr) / (getHeight() * 2)); 102 QString name = tr("%1 Hz").arg((n * sr) / ((getHeight()-1) * 2));
103 return name; 103 return name;
104 } 104 }
105 105
106 Model * 106 Model *
107 FFTModel::clone() const 107 FFTModel::clone() const