mirror of
https://github.com/AlexandreRouma/dsp2.git
synced 2026-04-18 14:52:43 +00:00
15 lines
247 B
C++
15 lines
247 B
C++
#include "hann.h"
|
|
#include "../constants.h"
|
|
|
|
namespace dsp::window {
|
|
Hann::Hann() {
|
|
define();
|
|
}
|
|
|
|
void Hann::define() {
|
|
def = [](float x) {
|
|
float y = sinf(DSP_PI*x);
|
|
return y*y;
|
|
};
|
|
}
|
|
} |