comparison data/model/SparseOneDimensionalModel.h @ 318:7a4bd2c8585c

* Some export fixes, and avoid clipping on resampling on import
author Chris Cannam
date Mon, 22 Oct 2007 09:45:35 +0000
parents 70a232b1f12a
children f14e2f7b24f7 6f6ab834449d
comparison
equal deleted inserted replaced
317:c324d410b096 318:7a4bd2c8585c
41 41
42 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const 42 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const
43 { 43 {
44 QStringList list; 44 QStringList list;
45 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); 45 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str();
46 list << label; 46 if (label != "") list << label;
47 return list.join(delimiter); 47 return list.join(delimiter);
48 } 48 }
49 49
50 struct Comparator { 50 struct Comparator {
51 bool operator()(const OneDimensionalPoint &p1, 51 bool operator()(const OneDimensionalPoint &p1,