comparison data/model/TextModel.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 cd6be949a16a
comparison
equal deleted inserted replaced
1678:1078f0ef3012 1679:0d89abd631ac
254 Event::ExportNameOptions options; 254 Event::ExportNameOptions options;
255 options.valueAtttributeName = "height"; 255 options.valueAtttributeName = "height";
256 256
257 m_events.toXml(out, indent, QString("dimensions=\"2\""), options); 257 m_events.toXml(out, indent, QString("dimensions=\"2\""), options);
258 } 258 }
259
260 QString toDelimitedDataString(QString delimiter,
261 DataExportOptions options,
262 sv_frame_t startFrame,
263 sv_frame_t duration) const override {
264 return m_events.toDelimitedDataString(delimiter,
265 options,
266 startFrame,
267 duration,
268 m_sampleRate,
269 m_resolution,
270 Event().withValue(0.f));
271 }
259 272
260 protected: 273 protected:
261 sv_samplerate_t m_sampleRate; 274 sv_samplerate_t m_sampleRate;
262 int m_resolution; 275 int m_resolution;
263 276