Hello.
I'm new to the world of Processing and therefore progressing through the examples.
I found a really great
video tutorial series on Vimeo by Andy Best.
On the 4th (link above) and 5th episode he plays with Minim audio library and FFT. I copied the sketch from the video to Processing and ran it. That works flawlessly! Then I saved the sketch to my sketchbook for later use but the code would not compile anymore. I just got an error "The constructor FFT(int, float) is undefined". According to the FFT
manual the constructor should be correct. When I copy the sketch to a new unsaved sketch and run it, guess what? It runs perfectly. :) How weird is that?
Could someone please tell me what I'm doing wrong?
Here is the initial part of the code (and remember that all credit goes to Andy Best, this is just a snippet from the tutorial):
import ddf.minim.analysis.*; import ddf.minim.*;
Minim minim; AudioInput in; FFT fft; int w;
void setup() { size(640, 480); minim = new Minim(this); in = minim.getLineIn(Minim.STEREO, 512); fft = new FFT(in.bufferSize(), in.sampleRate()); fft.logAverages(60, 7); stroke(255); w = width/fft.avgSize(); strokeWeight(w); }