Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
31:37af203dbd15 | 32:e3b32dc5180b |
---|---|
141 | 141 |
142 void initialise(); | 142 void initialise(); |
143 void calculateParameters(); | 143 void calculateParameters(); |
144 void cleanup(); | 144 void cleanup(); |
145 | 145 |
146 bool shouldSharpen() { | |
147 return m_sharpen && (m_ratio > 0.25); | |
148 } | |
149 | |
146 size_t m_sampleRate; | 150 size_t m_sampleRate; |
147 size_t m_channels; | 151 size_t m_channels; |
148 size_t m_maxOutputBlockSize; | 152 size_t m_maxOutputBlockSize; |
149 float m_ratio; | 153 float m_ratio; |
150 bool m_sharpen; | 154 bool m_sharpen; |