Mercurial > hg > svcore
comparison data/model/FFTModel.cpp @ 1191:6d09ad2ab21f spectrogram-minor-refactor
Create, but don't yet use, a renderer in the colour 3d plot layer
author | Chris Cannam |
---|---|
date | Wed, 13 Jul 2016 13:06:28 +0100 |
parents | 12a8daa89970 |
children | 825d0d7641ba |
comparison
equal
deleted
inserted
replaced
1190:f6998e304b36 | 1191:6d09ad2ab21f |
---|---|
329 | 329 |
330 return true; | 330 return true; |
331 } | 331 } |
332 | 332 |
333 FFTModel::PeakLocationSet | 333 FFTModel::PeakLocationSet |
334 FFTModel::getPeaks(PeakPickType type, int x, int ymin, int ymax) | 334 FFTModel::getPeaks(PeakPickType type, int x, int ymin, int ymax) const |
335 { | 335 { |
336 Profiler profiler("FFTModel::getPeaks"); | 336 Profiler profiler("FFTModel::getPeaks"); |
337 | 337 |
338 FFTModel::PeakLocationSet peaks; | 338 FFTModel::PeakLocationSet peaks; |
339 if (!isOK()) return peaks; | 339 if (!isOK()) return peaks; |
477 return medianWinSize; | 477 return medianWinSize; |
478 } | 478 } |
479 | 479 |
480 FFTModel::PeakSet | 480 FFTModel::PeakSet |
481 FFTModel::getPeakFrequencies(PeakPickType type, int x, | 481 FFTModel::getPeakFrequencies(PeakPickType type, int x, |
482 int ymin, int ymax) | 482 int ymin, int ymax) const |
483 { | 483 { |
484 Profiler profiler("FFTModel::getPeakFrequencies"); | 484 Profiler profiler("FFTModel::getPeakFrequencies"); |
485 | 485 |
486 PeakSet peaks; | 486 PeakSet peaks; |
487 if (!isOK()) return peaks; | 487 if (!isOK()) return peaks; |