Mercurial > hg > sonic-visualiser
diff audioio/PhaseVocoderTimeStretcher.h @ 32:e3b32dc5180b
* Make resampler quality configurable
* Fall back to linear resampling when playing very fast
* Switch off transient detection in time stretcher when playing very very fast
author | Chris Cannam |
---|---|
date | Thu, 21 Sep 2006 11:17:19 +0000 |
parents | 37af203dbd15 |
children | bedc7517b6e8 |
line wrap: on
line diff
--- a/audioio/PhaseVocoderTimeStretcher.h Thu Sep 21 09:43:41 2006 +0000 +++ b/audioio/PhaseVocoderTimeStretcher.h Thu Sep 21 11:17:19 2006 +0000 @@ -143,6 +143,10 @@ void calculateParameters(); void cleanup(); + bool shouldSharpen() { + return m_sharpen && (m_ratio > 0.25); + } + size_t m_sampleRate; size_t m_channels; size_t m_maxOutputBlockSize;