Mercurial > hg > svcore
diff data/model/FFTModel.cpp @ 1429:48e9f538e6e9
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | 87ae75da6527 |
children | 0925b37a3ed1 |
line wrap: on
line diff
--- a/data/model/FFTModel.cpp Thu Mar 01 14:43:40 2018 +0000 +++ b/data/model/FFTModel.cpp Thu Mar 01 18:02:22 2018 +0000 @@ -288,15 +288,15 @@ } if (m_channel == -1) { - int channels = m_model->getChannelCount(); - if (channels > 1) { + int channels = m_model->getChannelCount(); + if (channels > 1) { int n = int(data.size()); float factor = 1.f / float(channels); // use mean instead of sum for fft model input - for (int i = 0; i < n; ++i) { - data[i] *= factor; - } - } + for (int i = 0; i < n; ++i) { + data[i] *= factor; + } + } } return data;