Mercurial > hg > svgui
comparison layer/SpectrogramLayer.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 | fd348f36c0d3 |
children | d99d67a5b93a |
comparison
equal
deleted
inserted
replaced
78:967193b6c7aa | 79:19bf27e4fb29 |
---|---|
2090 // std::cerr << "SpectrogramLayer::getCompletion: completion = " << completion << std::endl; | 2090 // std::cerr << "SpectrogramLayer::getCompletion: completion = " << completion << std::endl; |
2091 return completion; | 2091 return completion; |
2092 } | 2092 } |
2093 | 2093 |
2094 bool | 2094 bool |
2095 SpectrogramLayer::getValueExtents(float &min, float &max, QString &unit) const | |
2096 { | |
2097 min = getEffectiveMinFrequency(); | |
2098 max = getEffectiveMaxFrequency(); | |
2099 unit = "Hz"; | |
2100 return true; | |
2101 } | |
2102 | |
2103 bool | |
2095 SpectrogramLayer::snapToFeatureFrame(View *v, int &frame, | 2104 SpectrogramLayer::snapToFeatureFrame(View *v, int &frame, |
2096 size_t &resolution, | 2105 size_t &resolution, |
2097 SnapType snap) const | 2106 SnapType snap) const |
2098 { | 2107 { |
2099 resolution = getWindowIncrement(); | 2108 resolution = getWindowIncrement(); |