Audacity 3.2.0
|
#include <StaffPadTimeAndPitch.h>
Public Member Functions | |
StaffPadTimeAndPitch (int sampleRate, size_t numChannels, TimeAndPitchSource &, const Parameters &) | |
void | GetSamples (float *const *, size_t) override |
void | OnCentShiftChange (int cents) override |
void | OnFormantPreservationChange (bool preserve) override |
Public Member Functions inherited from TimeAndPitchInterface | |
virtual void | GetSamples (float *const *, size_t)=0 |
virtual void | OnCentShiftChange (int cents)=0 |
virtual void | OnFormantPreservationChange (bool preserve)=0 |
virtual | ~TimeAndPitchInterface () |
Private Member Functions | |
bool | IllState () const |
void | InitializeStretcher () |
Private Attributes | |
const int | mSampleRate |
const std::unique_ptr< FormantShifterLoggerInterface > | mFormantShifterLogger |
TimeAndPitchInterface::Parameters | mParameters |
FormantShifter | mFormantShifter |
std::unique_ptr< staffpad::TimeAndPitch > | mTimeAndPitch |
TimeAndPitchSource & | mAudioSource |
AudioContainer | mReadBuffer |
const size_t | mNumChannels |
Additional Inherited Members | |
Static Public Member Functions inherited from TimeAndPitchInterface | |
static bool | IsPassThroughMode (double stretchRatio) |
Static Public Attributes inherited from TimeAndPitchInterface | |
static constexpr auto | MaxCents = 1200 |
static constexpr auto | MinCents = -1200 |
Definition at line 7 of file StaffPadTimeAndPitch.h.
StaffPadTimeAndPitch::StaffPadTimeAndPitch | ( | int | sampleRate, |
size_t | numChannels, | ||
TimeAndPitchSource & | audioSource, | ||
const Parameters & | parameters | ||
) |
Definition at line 80 of file StaffPadTimeAndPitch.cpp.
References anonymous_namespace{StaffPadTimeAndPitch.cpp}::GetFftSize(), InitializeStretcher(), TimeAndPitchInterface::IsPassThroughMode(), mFormantShifter, mParameters, TimeAndPitchInterface::Parameters::pitchRatio, TimeAndPitchInterface::Parameters::preserveFormants, FormantShifter::Reset(), anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, and TimeAndPitchInterface::Parameters::timeRatio.
|
overridevirtual |
Implements TimeAndPitchInterface.
Definition at line 106 of file StaffPadTimeAndPitch.cpp.
References AudioContainer::Get(), anonymous_namespace{StaffPadTimeAndPitch.cpp}::GetOffsetBuffer(), IllState(), mAudioSource, anonymous_namespace{StaffPadTimeAndPitch.cpp}::maxBlockSize, mFormantShifterLogger, min(), mNumChannels, mReadBuffer, mTimeAndPitch, and TimeAndPitchSource::Pull().
Referenced by TEST_CASE().
|
private |
Definition at line 213 of file StaffPadTimeAndPitch.cpp.
References mTimeAndPitch.
Referenced by GetSamples(), and InitializeStretcher().
|
private |
Definition at line 178 of file StaffPadTimeAndPitch.cpp.
References anonymous_namespace{StaffPadTimeAndPitch.cpp}::CreateTimeAndPitch(), AudioContainer::Get(), IllState(), mAudioSource, anonymous_namespace{StaffPadTimeAndPitch.cpp}::maxBlockSize, mFormantShifter, min(), mNumChannels, mParameters, mSampleRate, mTimeAndPitch, TimeAndPitchInterface::Parameters::pitchRatio, TimeAndPitchSource::Pull(), and TimeAndPitchInterface::Parameters::timeRatio.
Referenced by OnCentShiftChange(), OnFormantPreservationChange(), and StaffPadTimeAndPitch().
|
overridevirtual |
Implements TimeAndPitchInterface.
Definition at line 154 of file StaffPadTimeAndPitch.cpp.
References InitializeStretcher(), mParameters, mTimeAndPitch, TimeAndPitchInterface::Parameters::pitchRatio, and TimeAndPitchInterface::Parameters::timeRatio.
|
overridevirtual |
Implements TimeAndPitchInterface.
Definition at line 167 of file StaffPadTimeAndPitch.cpp.
References anonymous_namespace{StaffPadTimeAndPitch.cpp}::GetFftSize(), InitializeStretcher(), mFormantShifter, mParameters, mSampleRate, mTimeAndPitch, TimeAndPitchInterface::Parameters::preserveFormants, and FormantShifter::Reset().
|
private |
Definition at line 27 of file StaffPadTimeAndPitch.h.
Referenced by GetSamples(), and InitializeStretcher().
|
private |
Definition at line 25 of file StaffPadTimeAndPitch.h.
Referenced by InitializeStretcher(), OnFormantPreservationChange(), and StaffPadTimeAndPitch().
|
private |
Definition at line 23 of file StaffPadTimeAndPitch.h.
Referenced by GetSamples().
|
private |
Definition at line 29 of file StaffPadTimeAndPitch.h.
Referenced by GetSamples(), and InitializeStretcher().
|
private |
Definition at line 24 of file StaffPadTimeAndPitch.h.
Referenced by InitializeStretcher(), OnCentShiftChange(), OnFormantPreservationChange(), and StaffPadTimeAndPitch().
|
private |
Definition at line 28 of file StaffPadTimeAndPitch.h.
Referenced by GetSamples().
|
private |
Definition at line 22 of file StaffPadTimeAndPitch.h.
Referenced by InitializeStretcher(), and OnFormantPreservationChange().
|
private |
Definition at line 26 of file StaffPadTimeAndPitch.h.
Referenced by GetSamples(), IllState(), InitializeStretcher(), OnCentShiftChange(), and OnFormantPreservationChange().