2023-07-13 19:11:24 +00:00
|
|
|
#pragma once
|
|
|
|
#include "EffectApplication.h"
|
2024-10-23 11:44:31 +00:00
|
|
|
#include "../shape/OsciPoint.h"
|
2023-07-13 19:11:24 +00:00
|
|
|
|
2025-02-01 14:28:13 +00:00
|
|
|
class OscirenderAudioProcessor;
|
2023-07-13 19:11:24 +00:00
|
|
|
class WobbleEffect : public EffectApplication {
|
|
|
|
public:
|
2025-02-01 14:28:13 +00:00
|
|
|
WobbleEffect(OscirenderAudioProcessor& p);
|
2023-07-13 19:11:24 +00:00
|
|
|
~WobbleEffect();
|
|
|
|
|
2024-10-23 11:44:31 +00:00
|
|
|
OsciPoint apply(int index, OsciPoint input, const std::vector<std::atomic<double>>& values, double sampleRate) override;
|
2023-07-13 19:11:24 +00:00
|
|
|
|
|
|
|
private:
|
2025-02-01 14:28:13 +00:00
|
|
|
OscirenderAudioProcessor& audioProcessor;
|
2023-07-13 19:11:24 +00:00
|
|
|
double smoothedFrequency = 0;
|
2024-08-26 17:09:29 +00:00
|
|
|
};
|