diff 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
line wrap: on
line diff
--- a/data/model/TextModel.h	Thu Mar 28 13:37:09 2019 +0000
+++ b/data/model/TextModel.h	Thu Mar 28 16:03:36 2019 +0000
@@ -256,6 +256,19 @@
         
         m_events.toXml(out, indent, QString("dimensions=\"2\""), options);
     }
+
+    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));
+    }
   
 protected:
     sv_samplerate_t m_sampleRate;