#pragma once #include class PitchShifter { public: void prepare (double sampleRate); void reset(); float process (float input, float ratio); private: float at (int index) const; float readCubic (float pos) const; std::vector buffer; int bufferSize = 0; int writePos = 0; float o = 0.0f; float baseDelay = 0.0f; float window = 0.0f; };