mirror of
https://codeberg.org/armin/ambivalence.git
synced 2026-09-01 04:10:48 +02:00
init
This commit is contained in:
parent
29c860587e
commit
42cf8432bf
57 changed files with 5782 additions and 0 deletions
19
Source/DSP/SAPFStage.h
Normal file
19
Source/DSP/SAPFStage.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
#include <JuceHeader.h>
|
||||
|
||||
namespace FDNReverb {
|
||||
|
||||
class SAPFStage {
|
||||
public:
|
||||
void prepare(const juce::dsp::ProcessSpec& spec, int delayTargetSamples);
|
||||
void setGain(float g) noexcept { gain = juce::jlimit(0.3f, 0.72f, g); }
|
||||
float tick(float x) noexcept;
|
||||
void reset() noexcept;
|
||||
|
||||
private:
|
||||
juce::dsp::DelayLine<float, juce::dsp::DelayLineInterpolationTypes::Thiran> dl;
|
||||
float gain{ 0.618f };
|
||||
int M{ 0 };
|
||||
};
|
||||
|
||||
} // namespace FDNReverb
|
||||
Loading…
Add table
Add a link
Reference in a new issue