Mercurial > hg > sonic-visualiser
comparison audioio/PhaseVocoderTimeStretcher.cpp @ 177:5bde373ad5ca
* Layer tree view updating when visibility / audibility changed (and layers
updating when they are changed in view) -- still some problems when a model
is loaded while the tree is visible
* FFTW_MEASURE throughout -- it does turn out to make an appreciable
difference sometimes
author | Chris Cannam |
---|---|
date | Thu, 16 Aug 2007 16:47:07 +0000 |
parents | 7310316bf74b |
children |
comparison
equal
deleted
inserted
replaced
176:4c120dfffe1d | 177:5bde373ad5ca |
---|---|
86 | 86 |
87 m_time[c] = (float *)fftf_malloc(sizeof(float) * m_wlen); | 87 m_time[c] = (float *)fftf_malloc(sizeof(float) * m_wlen); |
88 m_freq[c] = (fftf_complex *)fftf_malloc(sizeof(fftf_complex) * | 88 m_freq[c] = (fftf_complex *)fftf_malloc(sizeof(fftf_complex) * |
89 (m_wlen / 2 + 1)); | 89 (m_wlen / 2 + 1)); |
90 | 90 |
91 m_plan[c] = fftf_plan_dft_r2c_1d(m_wlen, m_time[c], m_freq[c], FFTW_ESTIMATE); | 91 m_plan[c] = fftf_plan_dft_r2c_1d(m_wlen, m_time[c], m_freq[c], FFTW_MEASURE); |
92 m_iplan[c] = fftf_plan_dft_c2r_1d(m_wlen, m_freq[c], m_time[c], FFTW_ESTIMATE); | 92 m_iplan[c] = fftf_plan_dft_c2r_1d(m_wlen, m_freq[c], m_time[c], FFTW_MEASURE); |
93 | 93 |
94 m_outbuf[c] = new RingBuffer<float> | 94 m_outbuf[c] = new RingBuffer<float> |
95 ((m_maxOutputBlockSize + m_wlen) * 2); | 95 ((m_maxOutputBlockSize + m_wlen) * 2); |
96 m_inbuf[c] = new RingBuffer<float> | 96 m_inbuf[c] = new RingBuffer<float> |
97 (lrintf(m_outbuf[c]->getSize() / m_ratio) + m_wlen); | 97 (lrintf(m_outbuf[c]->getSize() / m_ratio) + m_wlen); |