-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFiniteImpulseResponse.cpp
23 lines (20 loc) · 1.14 KB
/
FiniteImpulseResponse.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#define _USE_MATH_DEFINES
#include <iostream>
#include <conio.h>
#include "FIR_FILTER.h"
#include <immintrin.h>
using namespace std;
int main(){
string py_path = "python";
string FirFilter_path = "C:\\Users\\Ïîëüçîâàòåëü\\source\\repos\\RpojectOOOSTC1\\OOOSTC_ProblemsForApprentice\\GraphForFIR.py";
FirFilter test1 = FirFilter();
test1.UploadWavSignal(py_path, FirFilter_path);
test1.OutXinGraph(py_path, FirFilter_path, "C:\\Users\\Ïîëüçîâàòåëü\\source\\repos\\RpojectOOOSTC1\\RpojectOOOSTC1\\graphX.txt");
test1.FIR_Filter(1024, 10000, 9966);
test1.OutYinGraph(py_path, FirFilter_path, "C:\\Users\\Ïîëüçîâàòåëü\\source\\repos\\RpojectOOOSTC1\\RpojectOOOSTC1\\graphY.txt");
test1.OutXYinGraph(py_path, FirFilter_path, "C:\\Users\\Ïîëüçîâàòåëü\\source\\repos\\RpojectOOOSTC1\\RpojectOOOSTC1\\graphXY.txt");
test1.OutFrequencyResponseGraph(py_path, FirFilter_path, "C:\\Users\\Ïîëüçîâàòåëü\\source\\repos\\RpojectOOOSTC1\\RpojectOOOSTC1\\graphXYFR.txt");
test1.ExportWavSignalY(py_path, FirFilter_path, "C:\\Users\\Ïîëüçîâàòåëü\\source\\repos\\RpojectOOOSTC1\\RpojectOOOSTC1\\file_write");
system("PAUSE");
return 0;
}