2023-03-28 13:33:56 +00:00
|
|
|
#pragma once
|
|
|
|
#include "EffectApplication.h"
|
2024-01-07 16:17:20 +00:00
|
|
|
#include "../shape/Point.h"
|
2023-03-28 13:33:56 +00:00
|
|
|
|
|
|
|
class DistortEffect : public EffectApplication {
|
|
|
|
public:
|
|
|
|
DistortEffect(bool vertical);
|
|
|
|
~DistortEffect();
|
|
|
|
|
2024-08-26 17:09:29 +00:00
|
|
|
Point apply(int index, Point input, const std::vector<std::atomic<double>>& values, double sampleRate) override;
|
2023-03-28 13:33:56 +00:00
|
|
|
private:
|
|
|
|
bool vertical;
|
2024-08-26 17:09:29 +00:00
|
|
|
};
|