osci-render/Source/audio/WobbleEffect.h

16 wiersze
410 B
C
Czysty Zwykły widok Historia

#pragma once
#include "EffectApplication.h"
2024-01-07 16:17:20 +00:00
#include "../shape/Point.h"
#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;
private:
PitchDetector& pitchDetector;
double smoothedFrequency = 0;
};