Skip to content

Commit

Permalink
Merge pull request #189 from electro-smith/soap-missing-namespace
Browse files Browse the repository at this point in the history
Added missing namespace to SOAP filter.
  • Loading branch information
beserge committed Dec 11, 2023
2 parents 5c111c9 + ccda0c3 commit c17dc18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Source/Filters/soap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#define PI 3.141592653589793

using namespace daisysp;

void Soap::Init(float sample_rate)
{
soap_center_freq_ = 400.0;
Expand Down
16 changes: 10 additions & 6 deletions Source/Filters/soap.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

namespace daisysp
{
/** Second Order All Pass Filter
This is from Tom Erbe's synth notes. The filter
Expand All @@ -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);

Expand All @@ -55,4 +57,6 @@ class Soap
float out_bandpass_;
float out_bandreject_;
float sr_;
};
};

} // namespace daisysp

0 comments on commit c17dc18

Please sign in to comment.