Mercurial > hg > silvet
comparison src/Silvet.cpp @ 155:e1ebbae52cff
Note on parameters etc
author | Chris Cannam |
---|---|
date | Fri, 16 May 2014 10:28:46 +0100 |
parents | c6b6d6ea1c3d |
children | 26d9a8b02adf |
comparison
equal
deleted
inserted
replaced
154:c6b6d6ea1c3d | 155:e1ebbae52cff |
---|---|
328 CQParameters params(processingSampleRate, | 328 CQParameters params(processingSampleRate, |
329 27.5, | 329 27.5, |
330 processingSampleRate / 3, | 330 processingSampleRate / 3, |
331 processingBPO); | 331 processingBPO); |
332 | 332 |
333 params.q = 1.0; // MIREX code uses 0.8, but for some reason that | 333 params.q = 0.95; // MIREX code uses 0.8, but it seems 0.9 or lower |
334 // makes our implementation much, much slower | 334 // drops the FFT size to 512 from 1024 and alters |
335 // some other processing parameters, making | |
336 // everything much, much slower. Could be a flaw | |
337 // in the CQ parameter calculations, must check | |
335 params.atomHopFactor = 0.3; | 338 params.atomHopFactor = 0.3; |
336 params.threshold = 0.0005; | 339 params.threshold = 0.0005; |
337 params.window = CQParameters::Hann; | 340 params.window = CQParameters::Hann; //!!! todo: test whether it makes any difference |
338 | 341 |
339 m_cq = new CQSpectrogram(params, CQSpectrogram::InterpolateLinear); | 342 m_cq = new CQSpectrogram(params, CQSpectrogram::InterpolateLinear); |
340 | 343 |
341 for (int i = 0; i < (int)m_postFilter.size(); ++i) { | 344 for (int i = 0; i < (int)m_postFilter.size(); ++i) { |
342 delete m_postFilter[i]; | 345 delete m_postFilter[i]; |