comparison view/View.h @ 277:8acd30ed735c

* Fix up and simplify the LayerTreeModel, removing a horrible memory leak * Move phase-unwrapped frequency estimation from SpectrogramLayer to FFTDataServer * Make the spectrum show peak phase-unwrapped frequencies as well (still needs work) * Start adding piano keyboard horizontal scale to spectrum * Debug output for id3 tags
author Chris Cannam
date Tue, 03 Jul 2007 12:46:18 +0000
parents 61a704654497
children 9dd432665059
comparison
equal deleted inserted replaced
276:21c7152ddba8 277:8acd30ed735c
148 148
149 /** 149 /**
150 * Return a layer, counted in stacking order. That is, layer 0 is 150 * Return a layer, counted in stacking order. That is, layer 0 is
151 * the bottom layer and layer "getLayerCount()-1" is the top one. 151 * the bottom layer and layer "getLayerCount()-1" is the top one.
152 */ 152 */
153 virtual Layer *getLayer(int n) { return m_layers[n]; } 153 virtual Layer *getLayer(int n) {
154 if (n < m_layers.size()) return m_layers[n]; else return 0;
155 }
154 156
155 /** 157 /**
156 * Return the top layer. This is the same as 158 * Return the top layer. This is the same as
157 * getLayer(getLayerCount()-1) if there is at least one layer, and 159 * getLayer(getLayerCount()-1) if there is at least one layer, and
158 * 0 otherwise. 160 * 0 otherwise.