diff data/model/FFTModel.cpp @ 1200:825d0d7641ba spectrogram-minor-refactor

Restore phase display
author Chris Cannam
date Thu, 04 Aug 2016 14:02:56 +0100
parents 6d09ad2ab21f
children 6f7a440b6218
line wrap: on
line diff
--- a/data/model/FFTModel.cpp	Wed Aug 03 16:16:23 2016 +0100
+++ b/data/model/FFTModel.cpp	Thu Aug 04 14:02:56 2016 +0100
@@ -103,6 +103,16 @@
     return move(col);
 }
 
+FFTModel::Column
+FFTModel::getPhases(int x) const
+{
+    auto cplx = getFFTColumn(x);
+    Column col;
+    col.reserve(cplx.size());
+    for (auto c: cplx) col.push_back(arg(c));
+    return move(col);
+}
+
 float
 FFTModel::getMagnitudeAt(int x, int y) const
 {