Mercurial > hg > svgui
diff layer/NoteLayer.cpp @ 79:19bf27e4fb29
* Replace crash with warning when a transform could not be automatically
re-run
* More sensible default paths for Vamp plugin lookup (at least on Linux and
OS/X)
* A start to making the y coords for time value layers etc align
* Set sensible y coords for text labels in time instant and value layers
author | Chris Cannam |
---|---|
date | Thu, 13 Apr 2006 18:29:10 +0000 |
parents | 45ba0b381c5d |
children | 01f27a282c90 |
line wrap: on
line diff
--- a/layer/NoteLayer.cpp Wed Apr 12 09:59:40 2006 +0000 +++ b/layer/NoteLayer.cpp Thu Apr 13 18:29:10 2006 +0000 @@ -181,6 +181,16 @@ return !v->shouldIlluminateLocalFeatures(this, discard); } +bool +NoteLayer::getValueExtents(float &min, float &max, QString &unit) const +{ + if (!m_model) return false; + min = m_model->getValueMinimum(); + max = m_model->getValueMaximum(); + unit = m_model->getScaleUnits(); + return true; +} + NoteModel::PointList NoteLayer::getLocalPoints(View *v, int x) const {