Mercurial > hg > svgui
comparison layer/Colour3DPlotExporter.cpp @ 1558:760ada8e3972 spectrogram-export
Fix typo in range
author | Chris Cannam |
---|---|
date | Tue, 07 Jan 2020 14:57:40 +0000 |
parents | ac8da42674ff |
children | e6e7a8dc3b38 |
comparison
equal
deleted
inserted
replaced
1557:3607b0092019 | 1558:760ada8e3972 |
---|---|
133 QStringList list; | 133 QStringList list; |
134 | 134 |
135 if (binDisplay == BinDisplay::PeakFrequencies) { | 135 if (binDisplay == BinDisplay::PeakFrequencies) { |
136 | 136 |
137 FFTModel::PeakSet peaks = fftModel->getPeakFrequencies | 137 FFTModel::PeakSet peaks = fftModel->getPeakFrequencies |
138 (FFTModel::AllPeaks, i, minbin, minbin + nbins + 1); | 138 (FFTModel::AllPeaks, i, minbin, minbin + nbins - 1); |
139 | 139 |
140 for (const auto &p: peaks) { | 140 for (const auto &p: peaks) { |
141 | 141 |
142 int bin = p.first; | 142 int bin = p.first; |
143 double freq = p.second; | 143 double freq = p.second; |