MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Vocoder

Method Vocoder

Source/Vocoder.cpp:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include "Profiler.h"
29
30Vocoder::Vocoder()
31: IAudioProcessor(gBufferSize)
32{
33 // Generate a window with a single raised cosine from N/4 to 3N/4
34 mWindower = new float[VOCODER_WINDOW_SIZE];
35 for (int i = 0; i < VOCODER_WINDOW_SIZE; ++i)
36 mWindower[i] = -.5 * cos(FTWO_PI * i / VOCODER_WINDOW_SIZE) + .5;
37
38 mCarrierInputBuffer = new float[GetBuffer()->BufferSize()];
39 Clear(mCarrierInputBuffer, GetBuffer()->BufferSize());
40
41 AddChild(&mGate);
42 mGate.SetPosition(110, 20);
43 mGate.SetEnabled(false);
44}
45
46void Vocoder::CreateUIControls()
47{

Callers

nothing calls this directly

Calls 4

ClearFunction · 0.85
BufferSizeMethod · 0.80
SetPositionMethod · 0.45
SetEnabledMethod · 0.45

Tested by

no test coverage detected