File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,27 +8,28 @@ Implements a windowed sync FIR using the overlap-and-add method.
8
8
```
9
9
FIRFilter* filter = &FIRFilter::getSingleton();
10
10
11
- //Low Pass
11
+ //Low Pass:
12
12
filter->initializeAsLowPass(44100.0f, //sample rate
13
13
256, //frame length
14
14
4000.0f, //cutoff frequency
15
15
1000.0f); //transition bandwidth
16
16
17
- //..or High Pass
17
+ //High Pass:
18
18
filter->initializeAsHighPass(44100.0, //sample rate
19
19
256, //frame length
20
20
1000.0f, //cutoff frequency
21
21
1000.0f); //transition bandwidth
22
22
23
23
24
- //...or Band Pass
24
+ //Band Pass:
25
25
filter->initializeAsBandPass(44100.0, //sample rate
26
26
256, //frame length
27
27
500.0f, //low cutoff frequency
28
28
200.0f, //low transition bandwidth
29
29
4000.0f, //high cutoff frequency
30
30
200.0f); //high transition bandwidth
31
-
31
+
32
+ //Demo/Test:
32
33
float frequency = 4500.0f;
33
34
float duration = 0.010f;
34
35
filter->test(frequency, duration);
You can’t perform that action at this time.
0 commit comments