comparison data/fileio/CSVFileReader.cpp @ 182:f75f8a1cd7b1

* Some dull work to continue unifying the fft model and editable dense 3d model interfaces
author Chris Cannam
date Mon, 09 Oct 2006 10:49:46 +0000
parents 21792a550ec9
children 9c85517ff0f5
comparison
equal deleted inserted replaced
181:9c652f2c39b1 182:f75f8a1cd7b1
225 225
226 model2->addPoint(point); 226 model2->addPoint(point);
227 227
228 } else if (modelType == CSVFormatDialog::ThreeDimensionalModel) { 228 } else if (modelType == CSVFormatDialog::ThreeDimensionalModel) {
229 229
230 DenseThreeDimensionalModel::BinValueSet values; 230 DenseThreeDimensionalModel::Column values;
231 231
232 for (int i = 0; i < tidyList.size(); ++i) { 232 for (int i = 0; i < tidyList.size(); ++i) {
233 233
234 bool ok = false; 234 bool ok = false;
235 float value = list[i].toFloat(&ok); 235 float value = list[i].toFloat(&ok);
252 } 252 }
253 253
254 std::cerr << "Setting bin values for count " << lineno << ", frame " 254 std::cerr << "Setting bin values for count " << lineno << ", frame "
255 << frameNo << ", time " << RealTime::frame2RealTime(frameNo, sampleRate) << std::endl; 255 << frameNo << ", time " << RealTime::frame2RealTime(frameNo, sampleRate) << std::endl;
256 256
257 model3->setBinValues(frameNo, values); 257 model3->setColumn(frameNo / model3->getResolution(), values);
258 } 258 }
259 259
260 ++lineno; 260 ++lineno;
261 if (timingType == CSVFormatDialog::ImplicitTiming || 261 if (timingType == CSVFormatDialog::ImplicitTiming ||
262 list.size() == 0) { 262 list.size() == 0) {