kopia lustrzana https://github.com/jameshball/osci-render
15 wiersze
379 B
C++
15 wiersze
379 B
C++
#pragma once
|
|
#include "EffectApplication.h"
|
|
#include "../shape/Point.h"
|
|
|
|
class VectorCancellingEffect : public EffectApplication {
|
|
public:
|
|
VectorCancellingEffect();
|
|
~VectorCancellingEffect();
|
|
|
|
Point apply(int index, Point input, const std::vector<std::atomic<double>>& values, double sampleRate) override;
|
|
private:
|
|
int lastIndex = 0;
|
|
double nextInvert = 0;
|
|
};
|