我試圖使用微量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