changeset 1998:6d82eecd4164 import-audio-data

Rely more heavily on the "value"-column estimation from CSVFormat to determine which columns might contain sample data when importing audio from CSV; this makes things a bit more consistent, & can easily enough be overridden
author Chris Cannam
date Wed, 12 Sep 2018 15:29:01 +0100
parents 2f14745d8e7b
children 417bf3d64215
files main/MainWindow.cpp repoint-lock.json
diffstat 2 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Sep 12 13:58:33 2018 +0100
+++ b/main/MainWindow.cpp	Wed Sep 12 15:29:01 2018 +0100
@@ -2890,12 +2890,6 @@
     format.setTimeUnits(CSVFormat::TimeAudioFrames);
     format.setSampleRate(defaultRate); // as a default for the dialog
 
-    for (int i = 0; i < format.getColumnCount(); ++i) {
-        if (format.isColumnNumeric(CSVFormat::ColumnNumeric)) {
-            format.setColumnPurpose(i, CSVFormat::ColumnValue);
-        }
-    }
-
     {
         CSVAudioFormatDialog *dialog = new CSVAudioFormatDialog(this, format);
         if (dialog->exec() != QDialog::Accepted) {
--- a/repoint-lock.json	Wed Sep 12 13:58:33 2018 +0100
+++ b/repoint-lock.json	Wed Sep 12 15:29:01 2018 +0100
@@ -4,10 +4,10 @@
       "pin": "da86fb0bccb3"
     },
     "svcore": {
-      "pin": "954d0cf29ca7"
+      "pin": "2d291eac9f21"
     },
     "svgui": {
-      "pin": "4616e1e89189"
+      "pin": "f33ee2702447"
     },
     "svapp": {
       "pin": "5e0018969003"