Mercurial > hg > svgui
comparison layer/SpectrumLayer.cpp @ 1481:e540aa5d89cd by-id
Update for removal of (public) getId from Model
author | Chris Cannam |
---|---|
date | Fri, 05 Jul 2019 15:34:50 +0100 |
parents | 886c1cd48f9d |
children |
comparison
equal
deleted
inserted
replaced
1480:232262e38051 | 1481:e540aa5d89cd |
---|---|
114 m_freqOfMinBin = double(m_minbin * newFFT->getSampleRate()) | 114 m_freqOfMinBin = double(m_minbin * newFFT->getSampleRate()) |
115 / getFFTSize(); | 115 / getFFTSize(); |
116 m_maxbin = newFFT->getHeight(); | 116 m_maxbin = newFFT->getHeight(); |
117 } | 117 } |
118 | 118 |
119 ModelById::add(newFFT); | 119 setSliceableModel(ModelById::add(newFFT)); |
120 setSliceableModel(newFFT->getId()); | |
121 | 120 |
122 m_biasCurve.clear(); | 121 m_biasCurve.clear(); |
123 for (int i = 0; i < fftSize; ++i) { | 122 for (int i = 0; i < fftSize; ++i) { |
124 // Scale by the window size, not the FFT size, because we | 123 // Scale by the window size, not the FFT size, because we |
125 // don't want to scale down by all the zero bins | 124 // don't want to scale down by all the zero bins |