-
Notifications
You must be signed in to change notification settings - Fork 0
/
SchroederAllPass.hpp
47 lines (31 loc) · 851 Bytes
/
SchroederAllPass.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// SchroederAllPass.hpp
// SchroederAllPassTest
//
// Created by Sam on 16/02/2018.
// Copyright © 2018 Sam. All rights reserved.
//
#ifndef SchroederAllPass_hpp
#define SchroederAllPass_hpp
#include <stdio.h>
// USER HEADERS
#include "CircularBuffer.hpp"
//delay 1.7 - 5 ms
class SchroederAllPass{
CircularBuffer CB{44100};
int Fs;
float delayLength;
float g;
float delayedSample = 0;
float feedFordwardSample = 0;
public:
SchroederAllPass(float inValue, float inG);
void process(float* samples, int bufferSize);
float processSingleSample(float sample);
void setFeedback(float inValue);
float getFeedback();
void setDelayLength(float inValue);
float getDelayLength();
void setFs(int inValue);
};
#endif /* SchroederAllPass_hpp */