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