DaisySP
Loading...
Searching...
No Matches
soap.h
1/*
2Copyright (c) 2020 Electrosmith, Corp, Brian Tice, Tom Erbe
3
4Use of this source code is governed by an MIT-style
5license that can be found in the LICENSE file or at
6https://opensource.org/licenses/MIT.
7*/
8
9#pragma once
10
11namespace daisysp
12{
20class Soap
21{
22 public:
23 Soap() {}
24 ~Soap() {}
25
29 void Init(float sample_rate);
30
34 void Process(float in);
35
39 void SetCenterFreq(float f);
40
44 void SetFilterBandwidth(float b);
45
49 inline float Bandpass() { return out_bandpass_; }
50
54 inline float Bandreject() { return out_bandreject_; }
55
56 private:
57 float soap_center_freq_;
58 float soap_bandwidth_;
59 float in_0_;
60 float din_1_;
61 float din_2_;
62 float dout_1_;
63 float dout_2_;
64 float all_output_;
65 float out_bandpass_;
66 float out_bandreject_;
67 float sr_;
68};
69
70} // namespace daisysp
Definition soap.h:21
float Bandreject()
Definition soap.h:54
void SetCenterFreq(float f)
Definition soap.cpp:55
void SetFilterBandwidth(float b)
Definition soap.cpp:61
float Bandpass()
Definition soap.h:49
void Process(float in)
Definition soap.cpp:24
void Init(float sample_rate)
Definition soap.cpp:8
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16