* bandlimited transient reset -- needs testing & refinement

This commit is contained in:
Chris Cannam
2007-11-09 13:19:29 +00:00
parent 472a4a251f
commit 94f85c2db4
4 changed files with 39 additions and 14 deletions

View File

@@ -568,13 +568,17 @@ RubberBandStretcher::Impl::modifyChunk(size_t channel, size_t outputIncrement,
}
bool lockThis = lock;
/*!!!
size_t low = lrint((150 * m_blockSize) / rate);
size_t high = lrint((1000 * m_blockSize) / rate);
if (lockThis) {
if (i > low && i < high) lockThis = false;
if (!(m_options & OptionTransientsSmooth) &&
!(m_options & OptionTransientsCrisp)) {
// must be OptionTransientsMixed
size_t low = lrint((150 * m_blockSize) / rate);
size_t high = lrint((1000 * m_blockSize) / rate);
if (lockThis) {
if (i > low && i < high) lockThis = false;
}
}
*/
if (!lockThis) {
if (i == 0 || p != pp) {