kopia lustrzana https://github.com/jameshball/osci-render
14 wiersze
367 B
C
14 wiersze
367 B
C
![]() |
#pragma once
|
||
|
#include "EffectApplication.h"
|
||
|
#include "../shape/Vector2.h"
|
||
|
|
||
|
class VectorCancellingEffect : public EffectApplication {
|
||
|
public:
|
||
|
VectorCancellingEffect();
|
||
|
~VectorCancellingEffect();
|
||
|
|
||
|
Vector2 apply(int index, Vector2 input, double value, double frequency, double sampleRate) override;
|
||
|
private:
|
||
|
int lastIndex = 0;
|
||
|
double nextInvert = 0;
|
||
|
};
|