📄 dec2hpfilter2.h
字号:
/* Decimation filter for rate 2 Copyright (C) 2001 Jussi Laako This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/#ifdef _MSC_VER#pragma warning(disable:4305)#endifstatic const long lDec2hpFilterLen = 181l;static const float fDec2hpFilterGain = 1.0f;static const float fpDec2hpFilterCoeffs[] = { 1.51677963743032E-5, -2.12356138591085E-5, -2.07673029716065E-5, 3.72972285343745E-5, 2.41723330749168E-5, -5.90544587901616E-5, -2.34422669344103E-5, 8.66962687022174E-5, 1.62558157797625E-5, -0.000119855945661192, -1.6253841917436E-18, 0.000157461347415186, -2.8092672271637E-5, -0.000197602731760729, 7.0758709342261E-5, 0.000237431954464951, -0.000130473200021533, -0.000273107023448113, 0.000209181585735834, 0.000299795244297823, -0.000308004601576327, -0.000311746420336693, 0.000426930937051031, 0.000302444783171379, -0.000564515257337938, -0.000264844603731904, 0.000717601545081079, 0.000191689921209318, -0.000881093026248391, -7.59137517316639E-5, 0.00104779003177996, -8.88932129414668E-5, -0.00120831588353897, 0.00030795969704445, 0.00135114822036689, -0.000584776863168041, -0.00146276912823186, 0.000920531453093884, 0.00152794213137515, -0.00131355609568234, -0.0015301177551404, 0.0017588251596944, 0.00145196228672818, -0.00224752402730421, -0.00127599690935273, 0.00276671708568075, 0.000985326991601885, -0.00329913488868916, -0.000564434428031609, 0.00382309367458977, 2.39567199738277E-17, -0.0043125505791386, 0.000718281820598307, 0.004737285209941, -0.00159693600328124, -0.00506318226627823, 0.00263802918077245, 0.00525256962315151, -0.003838620690209, -0.00526453980886472, 0.00519037848653687, 0.00505514631447798, -0.00667939013154692, -0.00457731237712618, 0.00828619125279836, 0.0037802045354143, -0.00998602443595495, -0.0026076779529806, 0.0117493309104661, 0.000995136526756793, -0.0135424661479722, 0.00113635906807661, 0.0153286192091758, -0.00389095022056731, -0.0170689049661966, 0.00741832808514376, 0.0187235887993283, -0.0119535997388452, -0.0202533955764551, 0.0179012340819739, 0.0216208491435652, -0.026031262736546, -0.0227915855456015, 0.0380117042896855, 0.0237355829807463, -0.0582178729061806, -0.0244282541373485, 0.102776157031988, 0.0248513519804365, -0.31712164193183, 0.474879311935802, -0.31712164193183, 0.0248513519804365, 0.102776157031988, -0.0244282541373485, -0.0582178729061806, 0.0237355829807463, 0.0380117042896855, -0.0227915855456015, -0.026031262736546, 0.0216208491435652, 0.0179012340819739, -0.0202533955764551, -0.0119535997388452, 0.0187235887993283, 0.00741832808514376, -0.0170689049661966, -0.00389095022056731, 0.0153286192091758, 0.00113635906807661, -0.0135424661479722, 0.000995136526756793, 0.0117493309104661, -0.0026076779529806, -0.00998602443595495, 0.0037802045354143, 0.00828619125279836, -0.00457731237712618, -0.00667939013154692, 0.00505514631447798, 0.00519037848653687, -0.00526453980886472, -0.003838620690209, 0.00525256962315151, 0.00263802918077245, -0.00506318226627823, -0.00159693600328124, 0.004737285209941, 0.000718281820598307, -0.0043125505791386, 2.39567199738277E-17, 0.00382309367458977, -0.000564434428031609, -0.00329913488868916, 0.000985326991601885, 0.00276671708568075, -0.00127599690935273, -0.00224752402730421, 0.00145196228672818, 0.0017588251596944, -0.0015301177551404, -0.00131355609568234, 0.00152794213137515, 0.000920531453093884, -0.00146276912823186, -0.000584776863168041, 0.00135114822036689, 0.00030795969704445, -0.00120831588353897, -8.88932129414668E-5, 0.00104779003177996, -7.59137517316639E-5, -0.000881093026248391, 0.000191689921209318, 0.000717601545081079, -0.000264844603731904, -0.000564515257337938, 0.000302444783171379, 0.000426930937051031, -0.000311746420336693, -0.000308004601576327, 0.000299795244297823, 0.000209181585735834, -0.000273107023448113, -0.000130473200021533, 0.000237431954464951, 7.0758709342261E-5, -0.000197602731760729, -2.8092672271637E-5, 0.000157461347415186, -1.6253841917436E-18, -0.000119855945661192, 1.62558157797625E-5, 8.66962687022174E-5, -2.34422669344103E-5, -5.90544587901616E-5, 2.41723330749168E-5, 3.72972285343745E-5, -2.07673029716065E-5, -2.12356138591085E-5, 1.51677963743032E-5};static const double dDec2hpFilterGain = 1.0;static const double dpDec2hpFilterCoeffs[] = { 1.51677963743032E-5, -2.12356138591085E-5, -2.07673029716065E-5, 3.72972285343745E-5, 2.41723330749168E-5, -5.90544587901616E-5, -2.34422669344103E-5, 8.66962687022174E-5, 1.62558157797625E-5, -0.000119855945661192, -1.6253841917436E-18, 0.000157461347415186, -2.8092672271637E-5, -0.000197602731760729, 7.0758709342261E-5, 0.000237431954464951, -0.000130473200021533, -0.000273107023448113, 0.000209181585735834, 0.000299795244297823, -0.000308004601576327, -0.000311746420336693, 0.000426930937051031, 0.000302444783171379, -0.000564515257337938, -0.000264844603731904, 0.000717601545081079, 0.000191689921209318, -0.000881093026248391, -7.59137517316639E-5, 0.00104779003177996, -8.88932129414668E-5, -0.00120831588353897, 0.00030795969704445, 0.00135114822036689, -0.000584776863168041, -0.00146276912823186, 0.000920531453093884, 0.00152794213137515, -0.00131355609568234, -0.0015301177551404, 0.0017588251596944, 0.00145196228672818, -0.00224752402730421, -0.00127599690935273, 0.00276671708568075, 0.000985326991601885, -0.00329913488868916, -0.000564434428031609, 0.00382309367458977, 2.39567199738277E-17, -0.0043125505791386, 0.000718281820598307, 0.004737285209941, -0.00159693600328124, -0.00506318226627823, 0.00263802918077245, 0.00525256962315151, -0.003838620690209, -0.00526453980886472, 0.00519037848653687, 0.00505514631447798, -0.00667939013154692, -0.00457731237712618, 0.00828619125279836, 0.0037802045354143, -0.00998602443595495, -0.0026076779529806, 0.0117493309104661, 0.000995136526756793, -0.0135424661479722, 0.00113635906807661, 0.0153286192091758, -0.00389095022056731, -0.0170689049661966, 0.00741832808514376, 0.0187235887993283, -0.0119535997388452, -0.0202533955764551, 0.0179012340819739, 0.0216208491435652, -0.026031262736546, -0.0227915855456015, 0.0380117042896855, 0.0237355829807463, -0.0582178729061806, -0.0244282541373485, 0.102776157031988, 0.0248513519804365, -0.31712164193183, 0.474879311935802, -0.31712164193183, 0.0248513519804365, 0.102776157031988, -0.0244282541373485, -0.0582178729061806, 0.0237355829807463, 0.0380117042896855, -0.0227915855456015, -0.026031262736546, 0.0216208491435652, 0.0179012340819739, -0.0202533955764551, -0.0119535997388452, 0.0187235887993283, 0.00741832808514376, -0.0170689049661966, -0.00389095022056731, 0.0153286192091758, 0.00113635906807661, -0.0135424661479722, 0.000995136526756793, 0.0117493309104661, -0.0026076779529806, -0.00998602443595495, 0.0037802045354143, 0.00828619125279836, -0.00457731237712618, -0.00667939013154692, 0.00505514631447798, 0.00519037848653687, -0.00526453980886472, -0.003838620690209, 0.00525256962315151, 0.00263802918077245, -0.00506318226627823, -0.00159693600328124, 0.004737285209941, 0.000718281820598307, -0.0043125505791386, 2.39567199738277E-17, 0.00382309367458977, -0.000564434428031609, -0.00329913488868916, 0.000985326991601885, 0.00276671708568075, -0.00127599690935273, -0.00224752402730421, 0.00145196228672818, 0.0017588251596944, -0.0015301177551404, -0.00131355609568234, 0.00152794213137515, 0.000920531453093884, -0.00146276912823186, -0.000584776863168041, 0.00135114822036689, 0.00030795969704445, -0.00120831588353897, -8.88932129414668E-5, 0.00104779003177996, -7.59137517316639E-5, -0.000881093026248391, 0.000191689921209318, 0.000717601545081079, -0.000264844603731904, -0.000564515257337938, 0.000302444783171379, 0.000426930937051031, -0.000311746420336693, -0.000308004601576327, 0.000299795244297823, 0.000209181585735834, -0.000273107023448113, -0.000130473200021533, 0.000237431954464951, 7.0758709342261E-5, -0.000197602731760729, -2.8092672271637E-5, 0.000157461347415186, -1.6253841917436E-18, -0.000119855945661192, 1.62558157797625E-5, 8.66962687022174E-5, -2.34422669344103E-5, -5.90544587901616E-5, 2.41723330749168E-5, 3.72972285343745E-5, -2.07673029716065E-5, -2.12356138591085E-5, 1.51677963743032E-5};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -