comparison data/model/SparseTimeValueModel.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
comparison
equal deleted inserted replaced
1678:1078f0ef3012 1679:0d89abd631ac
319 .arg(encodeEntities(m_units)) 319 .arg(encodeEntities(m_units))
320 .arg(extraAttributes)); 320 .arg(extraAttributes));
321 321
322 m_events.toXml(out, indent, QString("dimensions=\"2\"")); 322 m_events.toXml(out, indent, QString("dimensions=\"2\""));
323 } 323 }
324
325 QString toDelimitedDataString(QString delimiter,
326 DataExportOptions options,
327 sv_frame_t startFrame,
328 sv_frame_t duration) const override {
329 return m_events.toDelimitedDataString(delimiter,
330 options,
331 startFrame,
332 duration,
333 m_sampleRate,
334 m_resolution,
335 Event().withValue(0.f));
336 }
324 337
325 protected: 338 protected:
326 sv_samplerate_t m_sampleRate; 339 sv_samplerate_t m_sampleRate;
327 int m_resolution; 340 int m_resolution;
328 341