Browse Source

REI: fix noise burst after patch load

pull/1639/head
bsp2 6 years ago
parent
commit
ffab729529
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      plugins/community/repos/Bidoo/src/REI.cpp
  2. +2
    -0
      plugins/community/repos/Bidoo/src/dep/filters/pitchshifter.h

+ 2
- 0
plugins/community/repos/Bidoo/src/REI.cpp View File

@@ -54,6 +54,8 @@ struct REI : Module {

REI() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
pShifter = new PitchShifter(BUFF_SIZE, 8, engineGetSampleRate());
memset((void*)in_Buffer.data, 0, sizeof(in_Buffer.data));
memset((void*)pin_Buffer.data, 0, sizeof(pin_Buffer.data));
}

void step() override;


+ 2
- 0
plugins/community/repos/Bidoo/src/dep/filters/pitchshifter.h View File

@@ -44,7 +44,9 @@ struct PitchShifter {
gInFIFO = (float*)calloc(fftFrameSize,sizeof(float));
gOutFIFO = (float*)calloc(fftFrameSize,sizeof(float));
gFFTworksp = (float*)pffft_aligned_malloc(fftFrameSize*sizeof(float));
memset((void*)gFFTworksp, 0, sizeof(fftFrameSize*sizeof(float))); // [bsp] 09Mar2019: fix noise burst after patch loading
gFFTworkspOut = (float*)pffft_aligned_malloc(fftFrameSize*sizeof(float));
memset((void*)gFFTworkspOut, 0, sizeof(fftFrameSize*sizeof(float))); // [bsp] 09Mar2019: fix noise burst after patch loading
gLastPhase = (float*)calloc((fftFrameSize/2+1),sizeof(float));
gSumPhase = (float*)calloc((fftFrameSize/2+1),sizeof(float));
gOutputAccum = (float*)calloc(2*fftFrameSize,sizeof(float));


Loading…
Cancel
Save