diff --git a/plugins/ladspa_effect/calf/calf/osc.h b/plugins/ladspa_effect/calf/calf/osc.h index 36c19fe3c..ba01a2f38 100644 --- a/plugins/ladspa_effect/calf/calf/osc.h +++ b/plugins/ladspa_effect/calf/calf/osc.h @@ -146,7 +146,7 @@ struct bandlimiter new_spec[SIZE - i] = 0.f; } // convert back to time domain (IFFT) and extract only real part - fft.calculate(new_spec.data(), iffted.data(), true); + fft.calculate(&new_spec.front(), &iffted.front(), true); for (int i = 0; i < SIZE; i++) output[i] = iffted[i].real(); } diff --git a/plugins/ladspa_effect/calf/src/organ.cpp b/plugins/ladspa_effect/calf/src/organ.cpp index 661b73b15..3d1b7eed1 100644 --- a/plugins/ladspa_effect/calf/src/organ.cpp +++ b/plugins/ladspa_effect/calf/src/organ.cpp @@ -173,9 +173,10 @@ static void padsynth(bandlimiter blSrc, bandlimiter tmp; tmp.resize(ORGAN_BIG_WAVE_SIZE); - blDest.compute_waveform(tmp.data()); - normalize_waveform(tmp.data(), ORGAN_BIG_WAVE_SIZE); - blDest.compute_spectrum(tmp.data()); + float *ptmp = &tmp.front(); + blDest.compute_waveform(ptmp); + normalize_waveform(ptmp, ORGAN_BIG_WAVE_SIZE); + blDest.compute_spectrum(ptmp); // limit is 1/2 of the number of harmonics of the original wave result.make_from_spectrum(blDest, foldover, ORGAN_WAVE_SIZE >> (1 + ORGAN_BIG_WAVE_SHIFT));