Mercurial > hg > svcore
diff data/model/RegionModel.h @ 1679:0d89abd631ac single-point
Re-add the toDelimitedDataString stuff
author | Chris Cannam |
---|---|
date | Thu, 28 Mar 2019 16:03:36 +0000 |
parents | f97d64b8674f |
children | 95396c9382e3 |
line wrap: on
line diff
--- a/data/model/RegionModel.h Thu Mar 28 13:37:09 2019 +0000 +++ b/data/model/RegionModel.h Thu Mar 28 16:03:36 2019 +0000 @@ -326,7 +326,21 @@ m_events.toXml(out, indent, QString("dimensions=\"3\"")); } - + + QString toDelimitedDataString(QString delimiter, + DataExportOptions options, + sv_frame_t startFrame, + sv_frame_t duration) const override { + return m_events.toDelimitedDataString + (delimiter, + options, + startFrame, + duration, + m_sampleRate, + m_resolution, + Event().withValue(0.f).withDuration(m_resolution)); + } + protected: sv_samplerate_t m_sampleRate; int m_resolution;