Closed SeleDreams closed 2 years ago
I was able to avoid a crash by doing this
int FreeResampler::Synthesizer::CheapTrickPhase(int sampleRate, int frameCount) {
CheapTrickOption cheapTrickOption;
InitializeCheapTrickOption(sampleRate,&cheapTrickOption);
auto **tempSpectogram = new double *[f0Length] ];
for (int i = 0; i < f0Length; i++)
{
tempSpectogram[i] = new double[frameCount ];
}
CheapTrick(audioFile->getSample().get(), frameCount, sampleRate, timePositions.get(), f0.get(),f0Length,&cheapTrickOption,tempSpectogram);
spectogram.reset(tempSpectogram);
return EXIT_SUCCESS;
}
but i'm not sure this is correct
Hi, I've been trying to use world but being pretty new to it i'm right now having some issues calling cheaptrick as my call results in a crash
here is my current code
when I run it though, cheaptrick crashes at line 222 when ' spectrogram[i][j] = spectral_envelope[j];' is called