Mercurial > hg > sonic-visualiser
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;