Provide option to shift formant independently of pitch

This commit is contained in:
Chris Cannam
2022-06-13 10:39:13 +01:00
parent 182e2b0e3b
commit c7e4d9eb07
4 changed files with 70 additions and 1 deletions

View File

@@ -75,6 +75,12 @@ RubberBandStretcher::setPitchScale(double scale)
else m_r3d->setPitchScale(scale);
}
void
RubberBandStretcher::setFormantScale(double scale)
{
if (m_r3d) m_r3d->setFormantScale(scale);
}
double
RubberBandStretcher::getTimeRatio() const
{
@@ -89,6 +95,13 @@ RubberBandStretcher::getPitchScale() const
else return m_r3d->getPitchScale();
}
double
RubberBandStretcher::getFormantScale() const
{
if (m_d) return 0.0;
else return m_r3d->getFormantScale();
}
size_t
RubberBandStretcher::getLatency() const
{