diff --git a/Source/Filters/soap.cpp b/Source/Filters/soap.cpp index 65f7a814..ea95289c 100644 --- a/Source/Filters/soap.cpp +++ b/Source/Filters/soap.cpp @@ -3,6 +3,8 @@ #define PI 3.141592653589793 +using namespace daisysp; + void Soap::Init(float sample_rate) { soap_center_freq_ = 400.0; diff --git a/Source/Filters/soap.h b/Source/Filters/soap.h index 1f72cbcf..4fdd3414 100644 --- a/Source/Filters/soap.h +++ b/Source/Filters/soap.h @@ -1,5 +1,7 @@ #pragma once +namespace daisysp +{ /** Second Order All Pass Filter This is from Tom Erbe's synth notes. The filter @@ -18,18 +20,18 @@ class Soap */ void Init(float sample_rate); - /** + /** Process the input signal, updating all of the outputs */ void Process(float in); - /** - Sets the center frequency of the filter. + /** + Sets the center frequency of the filter. */ void SetCenterFreq(float f); - /** - Sets the low frequency threshold of the filter. + /** + Sets the low frequency threshold of the filter. */ void SetFilterBandwidth(float b); @@ -55,4 +57,6 @@ class Soap float out_bandpass_; float out_bandreject_; float sr_; -}; \ No newline at end of file +}; + +} // namespace daisysp