Mercurial > hg > svcore
comparison data/model/SparseTimeValueModel.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 |
---|---|
49 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const | 49 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const |
50 { | 50 { |
51 QStringList list; | 51 QStringList list; |
52 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); | 52 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); |
53 list << QString("%1").arg(value); | 53 list << QString("%1").arg(value); |
54 list << label; | 54 if (label != "") list << label; |
55 return list.join(delimiter); | 55 return list.join(delimiter); |
56 } | 56 } |
57 | 57 |
58 struct Comparator { | 58 struct Comparator { |
59 bool operator()(const TimeValuePoint &p1, | 59 bool operator()(const TimeValuePoint &p1, |