| 28 | #include "Profiler.h" |
| 29 | |
| 30 | Vocoder::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 | |
| 46 | void Vocoder::CreateUIControls() |
| 47 | { |
nothing calls this directly
no test coverage detected