mirror of
https://github.com/ShaYmez/xlxd.git
synced 2025-08-01 13:02:43 -04:00
Tryning a different filter, might save some CPU
This commit is contained in:
parent
5fc2974f9b
commit
1770dc188f
13
ambed/main.h
13
ambed/main.h
@ -109,7 +109,7 @@ typedef unsigned int uint;
|
|||||||
/*
|
/*
|
||||||
pkg load signal;
|
pkg load signal;
|
||||||
fsamp = 8000;
|
fsamp = 8000;
|
||||||
fcuts = [200 300 3000 3400];
|
fcuts = [300 400 3000 3400];
|
||||||
mags = [0 1 0];
|
mags = [0 1 0];
|
||||||
devs = [0.2 1 0.2];
|
devs = [0.2 1 0.2];
|
||||||
|
|
||||||
@ -127,13 +127,10 @@ grid
|
|||||||
#if USE_BANDPASSFILTER == 1
|
#if USE_BANDPASSFILTER == 1
|
||||||
|
|
||||||
const float FILTER_TAPS[] {
|
const float FILTER_TAPS[] {
|
||||||
-0.0153779f, 0.0114832f, -0.0060703f, -0.0221526f, 0.0085472f, -0.0449400f,
|
-0.05063341f, -0.00060337f, -0.08892498f, -0.02026701f, -0.05940750f, -0.10977641f, 0.03244024f, -0.22304499f,
|
||||||
-0.0068112f, -0.0307485f, -0.0548559f, -0.0022596f, -0.0879344f, -0.0166698f,
|
0.11452865f, 0.72500000f, 0.11452865f, -0.22304499f, 0.03244024f, -0.10977641f, -0.05940750f, -0.02026701f,
|
||||||
-0.0533627f, -0.1015552f, 0.0424673f, -0.2116654f, 0.1267453f, 0.7375000f,
|
-0.08892498f, -0.00060337f, -0.05063341f };
|
||||||
0.1267453f, -0.2116654f, 0.0424673f, -0.1015552f, -0.0533627f, -0.0166698f,
|
#define FILTER_TAPS_LENGTH 19
|
||||||
-0.0879344f, -0.0022596f, -0.0548559f, -0.0307485f, -0.0068112f, -0.0449400f,
|
|
||||||
0.0085472f, -0.0221526f, -0.0060703f, 0.0114832f, -0.0153779f };
|
|
||||||
#define FILTER_TAPS_LENGTH 35
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user