comparison layer/SpectrogramLayer.cpp @ 1472:dbff4b290bf0 by-id

Further layer updates
author Chris Cannam
date Mon, 01 Jul 2019 14:25:53 +0100
parents f2525e6cbdf1
children 886c1cd48f9d
comparison
equal deleted inserted replaced
1471:f2525e6cbdf1 1472:dbff4b290bf0
54 //#define DEBUG_SPECTROGRAM_REPAINT 1 54 //#define DEBUG_SPECTROGRAM_REPAINT 1
55 55
56 using namespace std; 56 using namespace std;
57 57
58 SpectrogramLayer::SpectrogramLayer(Configuration config) : 58 SpectrogramLayer::SpectrogramLayer(Configuration config) :
59 m_model(nullptr),
60 m_channel(0), 59 m_channel(0),
61 m_windowSize(1024), 60 m_windowSize(1024),
62 m_windowType(HanningWindow), 61 m_windowType(HanningWindow),
63 m_windowHopLevel(2), 62 m_windowHopLevel(2),
64 m_oversampling(1), 63 m_oversampling(1),
81 m_normalizeVisibleArea(false), 80 m_normalizeVisibleArea(false),
82 m_lastEmittedZoomStep(-1), 81 m_lastEmittedZoomStep(-1),
83 m_synchronous(false), 82 m_synchronous(false),
84 m_haveDetailedScale(false), 83 m_haveDetailedScale(false),
85 m_exiting(false), 84 m_exiting(false),
86 m_fftModel(nullptr),
87 m_wholeCache(nullptr), 85 m_wholeCache(nullptr),
88 m_peakCache(nullptr), 86 m_peakCache(nullptr),
89 m_peakCacheDivisor(8) 87 m_peakCacheDivisor(8)
90 { 88 {
91 QString colourConfigName = "spectrogram-colour"; 89 QString colourConfigName = "spectrogram-colour";