Audacity 3.2.0
StaffPadTimeAndPitch.h
Go to the documentation of this file.
1#include "AudioContainer.h"
2#include "FormantShifter.h"
6
7class TIME_AND_PITCH_API StaffPadTimeAndPitch final :
9{
10public:
12 int sampleRate, size_t numChannels, TimeAndPitchSource&,
13 const Parameters&);
14 void GetSamples(float* const*, size_t) override;
15 void OnCentShiftChange(int cents) override;
16 void OnFormantPreservationChange(bool preserve) override;
17
18private:
19 bool IllState() const;
20 void InitializeStretcher();
21
22 const int mSampleRate;
23 const std::unique_ptr<FormantShifterLoggerInterface> mFormantShifterLogger;
26 std::unique_ptr<staffpad::TimeAndPitch> mTimeAndPitch;
29 const size_t mNumChannels;
30};
FormantShifter mFormantShifter
const std::unique_ptr< FormantShifterLoggerInterface > mFormantShifterLogger
TimeAndPitchSource & mAudioSource
TimeAndPitchInterface::Parameters mParameters
std::unique_ptr< staffpad::TimeAndPitch > mTimeAndPitch
virtual void OnFormantPreservationChange(bool preserve)=0
virtual void OnCentShiftChange(int cents)=0
virtual void GetSamples(float *const *, size_t)=0