* Sort out resynthesis gain; add crispness parameter to pitch shifter plugin

This commit is contained in:
Chris Cannam
2007-11-21 19:57:49 +00:00
parent 902e52f8f1
commit d2fe49c20c
7 changed files with 82 additions and 23 deletions

View File

@@ -403,7 +403,7 @@ RubberBandStretcher::Impl::calculateSizes()
//necessary. clearly something wrong in our calculations... or do
//we just need to ensure client calls setMaxProcessSize?
if (!m_realtime && !m_threaded) {
m_outbufSize = m_outbufSize * 2;
m_outbufSize = m_outbufSize * 5;
}
}
@@ -616,10 +616,17 @@ RubberBandStretcher::Impl::getLatency() const
void
RubberBandStretcher::Impl::setTransientsOption(Options options)
{
if (!m_realtime) {
cerr << "RubberBandStretcher::Impl::setTransientsOption: Not permissible in non-realtime mode" << endl;
return;
}
m_options &= ~(OptionTransientsMixed |
OptionTransientsSmooth |
OptionTransientsCrisp);
m_options |= options;
m_stretchCalculator->setUseHardPeaks
(!(m_options & OptionTransientsSmooth));
}
void