Tryning a different filter, might save some CPU

This commit is contained in:
Geoffrey Merck 2020-04-04 05:35:10 +02:00
parent 5fc2974f9b
commit 1770dc188f
1 changed files with 5 additions and 8 deletions

View File

@ -109,7 +109,7 @@ typedef unsigned int uint;
/*
pkg load signal;
fsamp = 8000;
fcuts = [200 300 3000 3400];
fcuts = [300 400 3000 3400];
mags = [0 1 0];
devs = [0.2 1 0.2];
@ -127,13 +127,10 @@ grid
#if USE_BANDPASSFILTER == 1
const float FILTER_TAPS[] {
-0.0153779f, 0.0114832f, -0.0060703f, -0.0221526f, 0.0085472f, -0.0449400f,
-0.0068112f, -0.0307485f, -0.0548559f, -0.0022596f, -0.0879344f, -0.0166698f,
-0.0533627f, -0.1015552f, 0.0424673f, -0.2116654f, 0.1267453f, 0.7375000f,
0.1267453f, -0.2116654f, 0.0424673f, -0.1015552f, -0.0533627f, -0.0166698f,
-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
-0.05063341f, -0.00060337f, -0.08892498f, -0.02026701f, -0.05940750f, -0.10977641f, 0.03244024f, -0.22304499f,
0.11452865f, 0.72500000f, 0.11452865f, -0.22304499f, 0.03244024f, -0.10977641f, -0.05940750f, -0.02026701f,
-0.08892498f, -0.00060337f, -0.05063341f };
#define FILTER_TAPS_LENGTH 19
#endif