MCPcopy Create free account
hub / github.com/andrewreeman/SpectralSuite / StandardFFTProcessor

Method StandardFFTProcessor

shared/StandardFFTProcessor.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "utilities.h"
5
6StandardFFTProcessor::StandardFFTProcessor(int size, int hopSize, int offset, int sRate) :
7 m_sRate(sRate), m_fftSize(size), m_halfSize(size / 2), m_invSize(1.f/float(size)),
8 m_hopsize(hopSize), m_offset(offset), m_windowType(FftWindowType::HANN), m_window((size_t)size), m_input((size_t)size),
9 m_cpxInput((size_t)size), m_fftOut((size_t)size), m_polarIn((size_t)m_halfSize),m_polarOut((size_t)m_halfSize),
10 m_ifftin((size_t)size), m_cpxOutput((size_t)size), m_output((size_t)size),
11 fft(std::make_unique<kissfft<FftDecimal>>(m_fftSize, false)), ifft(std::make_unique<kissfft<FftDecimal>>(m_fftSize, true))
12{
13 fillWindow(m_window, m_fftSize);
14}
15
16
17void StandardFFTProcessor::process(const FftDecimal* input, FftDecimal* output, int blockSize){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected