2023-07-13 19:11:24 +00:00
|
|
|
#pragma once
|
|
|
|
#include "EffectApplication.h"
|
2024-01-07 16:17:20 +00:00
|
|
|
#include "../shape/Point.h"
|
2023-07-13 19:11:24 +00:00
|
|
|
#include "PitchDetector.h"
|
|
|
|
|
|
|
|
class WobbleEffect : public EffectApplication {
|
|
|
|
public:
|
|
|
|
WobbleEffect(PitchDetector& pitchDetector);
|
|
|
|
~WobbleEffect();
|
|
|
|
|
2024-01-07 16:17:20 +00:00
|
|
|
Point apply(int index, Point input, const std::vector<double>& values, double sampleRate) override;
|
2023-07-13 19:11:24 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
PitchDetector& pitchDetector;
|
|
|
|
double smoothedFrequency = 0;
|
|
|
|
};
|