comparison data/model/FFTModel.cpp @ 1201:6f7a440b6218 spectrogram-minor-refactor

Fixes to phase display and colour scale for it; tidy up some debug output
author Chris Cannam
date Fri, 05 Aug 2016 14:31:16 +0100
parents 825d0d7641ba
children 6b847a59d908
comparison
equal deleted inserted replaced
1200:825d0d7641ba 1201:6f7a440b6218
107 FFTModel::getPhases(int x) const 107 FFTModel::getPhases(int x) const
108 { 108 {
109 auto cplx = getFFTColumn(x); 109 auto cplx = getFFTColumn(x);
110 Column col; 110 Column col;
111 col.reserve(cplx.size()); 111 col.reserve(cplx.size());
112 for (auto c: cplx) col.push_back(arg(c)); 112 for (auto c: cplx) {
113 col.push_back(arg(c));
114 }
113 return move(col); 115 return move(col);
114 } 116 }
115 117
116 float 118 float
117 FFTModel::getMagnitudeAt(int x, int y) const 119 FFTModel::getMagnitudeAt(int x, int y) const