2023-03-28 13:33:56 +00:00
|
|
|
#pragma once
|
2025-04-23 14:26:33 +00:00
|
|
|
#include <JuceHeader.h>
|
2023-03-28 13:33:56 +00:00
|
|
|
|
2025-04-23 14:26:33 +00:00
|
|
|
class VectorCancellingEffect : public osci::EffectApplication {
|
2023-03-28 13:33:56 +00:00
|
|
|
public:
|
|
|
|
VectorCancellingEffect();
|
|
|
|
~VectorCancellingEffect();
|
|
|
|
|
2025-04-23 14:26:33 +00:00
|
|
|
osci::Point apply(int index, osci::Point input, const std::vector<std::atomic<double>>& values, double sampleRate) override;
|
2023-03-28 13:33:56 +00:00
|
|
|
private:
|
|
|
|
int lastIndex = 0;
|
|
|
|
double nextInvert = 0;
|
2024-08-26 17:09:29 +00:00
|
|
|
};
|