File balance.h¶
File List > DaisySP > DaisySP-LGPL > Source > Dynamics > balance.h
Go to the documentation of this file
Source Code¶
/*
Copyright (c) 2023 Electrosmith, Corp, Barry Vercoe, john ffitch, Gabriel Maldonado
Use of this source code is governed by the LGPL V2.1
license that can be found in the LICENSE file or at
https://opensource.org/license/lgpl-2-1/
*/
#pragma once
#ifndef DSY_BALANCE_H
#define DSY_BALANCE_H
#include <stdint.h>
#ifdef __cplusplus
namespace daisysp
{
class Balance
{
public:
Balance() {}
~Balance() {}
void Init(float sample_rate);
float Process(float sig, float comp);
inline void SetCutoff(float cutoff) { ihp_ = cutoff; }
private:
float sample_rate_, ihp_, c2_, c1_, prvq_, prvr_, prva_;
};
} // namespace daisysp
#endif
#endif