Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/Colour3DPlotExporter.cpp Thu Jan 09 14:35:55 2020 +0000 +++ b/layer/Colour3DPlotExporter.cpp Fri Jan 10 11:12:33 2020 +0000 @@ -127,6 +127,18 @@ QStringList list; + switch (m_params.timestampFormat) { + case TimestampFormat::None: + break; + case TimestampFormat::Frames: + list << QString("%1").arg(fr); + break; + case TimestampFormat::Seconds: + list << QString("%1").arg(RealTime::frame2RealTime + (fr, model->getSampleRate()).toDouble()); + break; + } + if (binDisplay == BinDisplay::PeakFrequencies) { FFTModel::PeakSet peaks = fftModel->getPeakFrequencies