#include #include "dcblock.h" using namespace daisysp; void DcBlock::Init(float sample_rate) { output_ = 0.0; input_ = 0.0; gain_ = 0.99; } float DcBlock::Process(float in) { float out; out = in - input_ + (gain_ * output_); output_ = out; input_ = in; return out; }