comparison layer/NoteLayer.cpp @ 66:e9eac9368e29

* basics of selectable vertical scale in time value layer * clear selection when closing session
author Chris Cannam
date Mon, 27 Mar 2006 16:44:12 +0000
parents 705f05ab42e3
children bf306158803d
comparison
equal deleted inserted replaced
65:7f608ec9a061 66:e9eac9368e29
406 } 406 }
407 407
408 float 408 float
409 NoteLayer::getValueForY(View *v, int y) const 409 NoteLayer::getValueForY(View *v, int y) const
410 { 410 {
411 //!!!
412
411 float min = m_model->getValueMinimum(); 413 float min = m_model->getValueMinimum();
412 float max = m_model->getValueMaximum(); 414 float max = m_model->getValueMaximum();
413 if (max == min) max = min + 1.0; 415 if (max == min) max = min + 1.0;
414 416
415 int h = v->height(); 417 int h = v->height();