mirror of
https://github.com/AlexandreRouma/dsp2.git
synced 2026-04-20 07:22:44 +00:00
progress
This commit is contained in:
16
src/main.cpp
16
src/main.cpp
@@ -1,21 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include "dsp/window.h"
|
||||
#include "dsp/window/all.h"
|
||||
|
||||
void testFunc(dsp::Window win) {
|
||||
printf("win(0.0) = %f\n", win(0.0));
|
||||
printf("win(0.5) = %f\n", win(0.5));
|
||||
printf("win(1.0) = %f\n", win(1.0));
|
||||
}
|
||||
#include <exception>
|
||||
|
||||
int main() {
|
||||
try {
|
||||
testFunc(dsp::window::Hann());
|
||||
|
||||
dsp::Window win = dsp::window::Triangular();
|
||||
dsp::Window win2 = dsp::window::Hann();
|
||||
|
||||
win = dsp::window::Hann();
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user