comparison layer/Colour3DPlotExporter.cpp @ 1564:62b7699e5bfe spectrogram-export

Add option to export timestamp column
author Chris Cannam
date Fri, 10 Jan 2020 11:12:33 +0000
parents d6f9fac336b3
children a6a31908bd13
comparison
equal deleted inserted replaced
1563:563bab925c9b 1564:62b7699e5bfe
125 // The scale factor is always applied 125 // The scale factor is always applied
126 column = ColumnOp::applyGain(column, m_params.scaleFactor); 126 column = ColumnOp::applyGain(column, m_params.scaleFactor);
127 127
128 QStringList list; 128 QStringList list;
129 129
130 switch (m_params.timestampFormat) {
131 case TimestampFormat::None:
132 break;
133 case TimestampFormat::Frames:
134 list << QString("%1").arg(fr);
135 break;
136 case TimestampFormat::Seconds:
137 list << QString("%1").arg(RealTime::frame2RealTime
138 (fr, model->getSampleRate()).toDouble());
139 break;
140 }
141
130 if (binDisplay == BinDisplay::PeakFrequencies) { 142 if (binDisplay == BinDisplay::PeakFrequencies) {
131 143
132 FFTModel::PeakSet peaks = fftModel->getPeakFrequencies 144 FFTModel::PeakSet peaks = fftModel->getPeakFrequencies
133 (FFTModel::AllPeaks, i, minbin, minbin + nbins - 1); 145 (FFTModel::AllPeaks, i, minbin, minbin + nbins - 1);
134 146