comparison layer/Colour3DPlotExporter.cpp @ 1559:e6e7a8dc3b38 spectrogram-export

Update in-progress comments only
author Chris Cannam
date Wed, 08 Jan 2020 15:29:02 +0000
parents 760ada8e3972
children d6f9fac336b3
comparison
equal deleted inserted replaced
1558:760ada8e3972 1559:e6e7a8dc3b38
88 //!!! and default to using it. 88 //!!! and default to using it.
89 89
90 //!!! todo: what about the other export types besides 90 //!!! todo: what about the other export types besides
91 //!!! delimited-data-string ? 91 //!!! delimited-data-string ?
92 92
93 //!!! todo: scripted regression tests for layer exports (of all 93 //!!! todo: export selections only (we have the necessaries here,
94 //!!! types) 94 //!!! but it needs support higher up)
95
96 //!!! todo: export selected region only (we have the necessaries
97 //!!! here, but it needs support higher up)
98 95
99 //!!! todo: option to include timestamps for columns 96 //!!! todo: option to include timestamps for columns
100 97
101 if (provider) { 98 if (provider) {
102 99
119 continue; 116 continue;
120 } 117 }
121 118
122 // Unlike Colour3DPlotRenderer, we don't want to scale or 119 // Unlike Colour3DPlotRenderer, we don't want to scale or
123 // normalise 120 // normalise
121
122 //!!! (but might we want to threshold? we get a lot of
123 //!!! spurious output [i.e. elements not readily visible on
124 //!!! screen] for peak freqs)
124 125
125 //!!! (should we be handling phase layer type?) 126 //!!! (+ should we be handling phase layer type?)
126 127
127 auto column = model->getColumn(i); 128 auto column = model->getColumn(i);
128 column = ColumnOp::Column(column.data() + minbin, 129 column = ColumnOp::Column(column.data() + minbin,
129 column.data() + minbin + nbins); 130 column.data() + minbin + nbins);
130 131
131 //!!! todo: peaks, frequencies (the things we came here for)
132
133 QStringList list; 132 QStringList list;
134 133
135 if (binDisplay == BinDisplay::PeakFrequencies) { 134 if (binDisplay == BinDisplay::PeakFrequencies) {
136 135
137 FFTModel::PeakSet peaks = fftModel->getPeakFrequencies 136 FFTModel::PeakSet peaks = fftModel->getPeakFrequencies