2023-03-28 14:52:51 +00:00
|
|
|
#pragma once
|
|
|
|
#include "EffectApplication.h"
|
2024-01-07 16:17:20 +00:00
|
|
|
#include "../shape/Point.h"
|
2023-03-28 14:52:51 +00:00
|
|
|
|
|
|
|
class SmoothEffect : public EffectApplication {
|
|
|
|
public:
|
|
|
|
SmoothEffect();
|
|
|
|
~SmoothEffect();
|
|
|
|
|
2024-01-07 16:17:20 +00:00
|
|
|
Point apply(int index, Point input, const std::vector<double>& values, double sampleRate) override;
|
2023-03-28 14:52:51 +00:00
|
|
|
private:
|
2023-07-11 21:28:54 +00:00
|
|
|
double leftAvg = 0;
|
|
|
|
double rightAvg = 0;
|
2023-03-28 14:52:51 +00:00
|
|
|
};
|