You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
437 B
30 lines
437 B
|
|
#pragma once
|
|
#ifndef DSY_DCBLOCK_H
|
|
#define DSY_DCBLOCK_H
|
|
#ifdef __cplusplus
|
|
|
|
namespace daisysp
|
|
{
|
|
/** Removes DC component of a signal
|
|
*/
|
|
class DcBlock
|
|
{
|
|
public:
|
|
DcBlock(){};
|
|
~DcBlock(){};
|
|
|
|
/** Initializes DcBlock module
|
|
*/
|
|
void Init(float sample_rate);
|
|
|
|
/** performs DcBlock Process
|
|
*/
|
|
float Process(float in);
|
|
|
|
private:
|
|
float input_, output_, gain_;
|
|
};
|
|
} // namespace daisysp
|
|
#endif
|
|
#endif
|
|
|