Mercurial > hg > svgui
comparison widgets/WindowShapePreview.cpp @ 682:1a0dfcbffaf1
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:06:40 +0000 |
parents | be5c35d3f409 |
children | 4a578a360011 |
comparison
equal
deleted
inserted
replaced
681:eaf4446a1bef | 682:1a0dfcbffaf1 |
---|---|
175 freqPainter.drawPath(path); | 175 freqPainter.drawPath(path); |
176 | 176 |
177 path = QPainterPath(); | 177 path = QPainterPath(); |
178 freqPainter.setPen(Qt::black); | 178 freqPainter.setPen(Qt::black); |
179 | 179 |
180 // std::cerr << "maxdb = " << maxdb << ", mindb = " << mindb << ", maxval = " <<maxval << std::endl; | 180 // cerr << "maxdb = " << maxdb << ", mindb = " << mindb << ", maxval = " <<maxval << endl; |
181 | 181 |
182 for (int i = 0; i < fftsize/2; ++i) { | 182 for (int i = 0; i < fftsize/2; ++i) { |
183 float power = output[i][0] * output[i][0] + output[i][1] * output[i][1]; | 183 float power = output[i][0] * output[i][0] + output[i][1] * output[i][1]; |
184 float db = 20 * log10(power); | 184 float db = 20 * log10(power); |
185 float val = db + -mindb; | 185 float val = db + -mindb; |