diff data/model/Dense3DModelPeakCache.cpp @ 1190:f6998e304b36 spectrogram-minor-refactor

Comments and naming
author Chris Cannam
date Thu, 23 Jun 2016 14:43:00 +0100
parents 2dc27f0f97ad
children 6d09ad2ab21f
line wrap: on
line diff
--- a/data/model/Dense3DModelPeakCache.cpp	Thu Jun 23 08:45:52 2016 +0100
+++ b/data/model/Dense3DModelPeakCache.cpp	Thu Jun 23 14:43:00 2016 +0100
@@ -20,7 +20,7 @@
 Dense3DModelPeakCache::Dense3DModelPeakCache(DenseThreeDimensionalModel *source,
 					     int columnsPerPeak) :
     m_source(source),
-    m_resolution(columnsPerPeak)
+    m_columnsPerPeak(columnsPerPeak)
 {
     m_cache = new EditableDenseThreeDimensionalModel
         (source->getSampleRate(),
@@ -95,8 +95,8 @@
 
     Column peak;
     int n = 0;
-    for (int i = 0; i < m_resolution; ++i) {
-        Column here = m_source->getColumn(column * m_resolution + i);
+    for (int i = 0; i < m_columnsPerPeak; ++i) {
+        Column here = m_source->getColumn(column * m_columnsPerPeak + i);
         if (i == 0) {
             peak = here;
             n = int(peak.size());