ViPERFX_RE/src/cpp/viper/utils/HighShelf.h

26 lines
371 B
C
Raw Normal View History

2021-07-28 23:50:34 +02:00
#pragma once
2021-07-28 23:50:34 +02:00
#include <cstdint>
class HighShelf {
public:
float Process(float sample);
void SetFrequency(uint32_t freq);
2021-07-28 23:50:34 +02:00
void SetGain(float gain);
2021-07-28 23:50:34 +02:00
void SetQuality(float q);
2021-07-28 23:50:34 +02:00
void SetSamplingRate(uint32_t samplerate);
uint32_t frequency, samplerate;
float quality, gain;
float y_2, y_1, x_2, x_1;
float b0, b1, b2, a1, a2;
};