osci-render/Source/audio/SmoothEffect.h

16 wiersze
396 B
C++

#pragma once
#include "EffectApplication.h"
#include "../shape/Vector2.h"
class SmoothEffect : public EffectApplication {
public:
SmoothEffect();
~SmoothEffect();
Vector2 apply(int index, Vector2 input, double value, double frequency, double sampleRate) override;
private:
const int MAX_WINDOW_SIZE = 2048;
std::vector<Vector2> window;
int windowSize = 1;
int head = 0;
};