This commit is contained in:
Armin 2026-08-10 12:55:02 +02:00
commit 6c0d072465
19 changed files with 2212 additions and 0 deletions

23
Source/PitchShifter.h Normal file
View file

@ -0,0 +1,23 @@
#pragma once
#include <vector>
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<float> buffer;
int bufferSize = 0;
int writePos = 0;
float o = 0.0f;
float baseDelay = 0.0f;
float window = 0.0f;
};