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

Method PhaseVocoder

shared/PhaseVocoder.cpp:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "utilities.h"
3
4PhaseVocoder::PhaseVocoder(int size, int hops, int offset, int sRate, const std::shared_ptr<PhaseBuffer> &_phaseBuffer) : StandardFFTProcessor(size, hops, offset, sRate), m_initialOffset(offset)
5{
6 /*
7 * StandardFFTProcessor Constructor has already alloc an iff
8 * Why alloc here again?
9 * if use raw pointer here this would cause memory leak!
10 */
11 // ifft = new kissfft<FftDecimal> (size, true);
12 phaseBuffer = _phaseBuffer;
13}
14
15
16void PhaseVocoder::doHannRotate(std::vector<FftDecimal>& inOut){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected