Mercurial > hg > constant-q-cpp
changeset 106:0a089d7d162d
Adjust resampler spec for speed/quality tradeoff
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 14 May 2014 11:22:51 +0100 |
parents | ef7b8d9363c0 |
children | 1ffa08f9df26 |
files | cpp-qm-dsp/CQInverse.cpp cpp-qm-dsp/ConstantQ.cpp |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cpp-qm-dsp/CQInverse.cpp Wed May 14 10:41:20 2014 +0100 +++ b/cpp-qm-dsp/CQInverse.cpp Wed May 14 11:22:51 2014 +0100 @@ -108,7 +108,7 @@ int factor = pow(2, i); Resampler *r = new Resampler - (sourceRate / factor, sourceRate, 60, 0.02); + (sourceRate / factor, sourceRate, 50, 0.05); #ifdef DEBUG_CQ cerr << "inverse: octave " << i << ": resample from " << sourceRate/factor << " to " << sourceRate << endl;
--- a/cpp-qm-dsp/ConstantQ.cpp Wed May 14 10:41:20 2014 +0100 +++ b/cpp-qm-dsp/ConstantQ.cpp Wed May 14 11:22:51 2014 +0100 @@ -110,7 +110,7 @@ int factor = pow(2, i); Resampler *r = new Resampler - (sourceRate, sourceRate / factor, 60, 0.02); + (sourceRate, sourceRate / factor, 50, 0.05); #ifdef DEBUG_CQ cerr << "forward: octave " << i << ": resample from " << sourceRate << " to " << sourceRate / factor << endl;