我试图使用微量FFT库,但运行的例子素描时,我碰上了以下问题:Processing.org/Minim FFT错误
The constructor FFT(int, float) is undefined.
我猜测,这个Java认为我正在尝试使用其他构造函数,但是我不能为了我的生活找出如何解决它。
继承人的代码的相关部分:
import ddf.minim.analysis.*;
import ddf.minim.*;
FFT fft;
float[] buffer;
int bsize = 512;
void setup()
{
size(512, 300, P3D);
// create an FFT with a time-domain size the same as the size of buffer
// it is required that these two values be the same
// and also that the value is a power of two
fft = new FFT(bsize, 44100);
buffer = new float[bsize];
}
您的草图的名称是什么? – 2013-02-24 22:56:37
它是SetFreq。我以为这可能是问题,但没有:( – 2013-02-24 22:58:39
这很奇怪,你有没有尝试过使用任何其他最小类?如果是这样,他们工作吗? – 2013-02-24 23:09:23