Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 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 | 015416e3a298 |
children | fbf8ce45fcad |
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;