kopia lustrzana https://github.com/jameshball/osci-render
14 wiersze
332 B
C++
14 wiersze
332 B
C++
#pragma once
|
|
#include "EffectApplication.h"
|
|
#include "../shape/OsciPoint.h"
|
|
|
|
class SmoothEffect : public EffectApplication {
|
|
public:
|
|
SmoothEffect();
|
|
~SmoothEffect();
|
|
|
|
OsciPoint apply(int index, OsciPoint input, const std::vector<std::atomic<double>>& values, double sampleRate) override;
|
|
private:
|
|
OsciPoint avg;
|
|
};
|