changeset 1986:bb9cf19e0b67 import-audio-data

Treat every numeric column as a value when importing raw audio data
author Chris Cannam
date Wed, 05 Sep 2018 11:57:10 +0100
parents c37e67a2ff17
children fbf8ce45fcad
files main/MainWindow.cpp repoint-lock.json
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Tue Sep 04 14:19:32 2018 +0100
+++ b/main/MainWindow.cpp	Wed Sep 05 11:57:10 2018 +0100
@@ -2897,6 +2897,11 @@
     format.setSampleRate(rate);
     format.setTimingType(CSVFormat::ImplicitTiming);
     format.setTimeUnits(CSVFormat::TimeAudioFrames);
+    for (int i = 0; i < format.getColumnCount(); ++i) {
+        if (format.getColumnQualities()[i] & CSVFormat::ColumnNumeric) {
+            format.setColumnPurpose(i, CSVFormat::ColumnValue);
+        }
+    }
 
     FileOpenStatus status = FileOpenSucceeded;
 
--- a/repoint-lock.json	Tue Sep 04 14:19:32 2018 +0100
+++ b/repoint-lock.json	Wed Sep 05 11:57:10 2018 +0100
@@ -4,7 +4,7 @@
       "pin": "da86fb0bccb3"
     },
     "svcore": {
-      "pin": "b837ccdd4946"
+      "pin": "5f1b2a117a4f"
     },
     "svgui": {
       "pin": "c2fa7bb1eca9"