comparison layer/TimeValueLayer.cpp @ 288:e27f546f83ad

* Fix failure to auto-calculate bounds on time-value or note model loaded from session file if min and max not specified in the model * Attempt to work out why some points in time-value layer are not being locally illuminated when expected, and why models are loaded from sv file without their names -- both failed so far...
author Chris Cannam
date Thu, 12 Jul 2007 21:10:43 +0000
parents cd2492c5fe45
children ea37c229a578
comparison
equal deleted inserted replaced
287:cd2492c5fe45 288:e27f546f83ad
564 long illuminateFrame = -1; 564 long illuminateFrame = -1;
565 565
566 if (v->shouldIlluminateLocalFeatures(this, localPos)) { 566 if (v->shouldIlluminateLocalFeatures(this, localPos)) {
567 SparseTimeValueModel::PointList localPoints = 567 SparseTimeValueModel::PointList localPoints =
568 getLocalPoints(v, localPos.x()); 568 getLocalPoints(v, localPos.x());
569 std::cerr << "TimeValueLayer: " << localPoints.size() << " local points" << std::endl;
569 if (!localPoints.empty()) illuminateFrame = localPoints.begin()->frame; 570 if (!localPoints.empty()) illuminateFrame = localPoints.begin()->frame;
570 } 571 }
571 572
572 int w = 573 int w =
573 v->getXForFrame(frame0 + m_model->getResolution()) - 574 v->getXForFrame(frame0 + m_model->getResolution()) -