Added DaisySP
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
Copyright (c) 2020 Electrosmith, Corp
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user