"Cannot find class or type named WaveformRenderer"
in
Core Library Questions
•
2 years ago
I have latest Processing (downloaded on April 16 2011)
I'm getting error message "Cannot find class or type named WaveformRenderer" while trying to run the code below. I searched web for any information but nothing usefull found.
Other people meet the same promblem.
/**
* This sketch demonstrates how to use the <code>addListener</code> method of a <code>Recordable</code> class.
* The class used here is <code>AudioPlayer</code>, but you can also add listeners to <code>AudioInput</code>,
* <code>AudioOutput</code>, and <code>AudioSample</code> objects. The class defined in waveform.pde implements
* the <code>AudioListener</code> interface and can therefore be added as a listener to <code>groove</code>.
*/
import ddf.minim.*;
Minim minim;
AudioPlayer groove;
WaveformRenderer waveform;
void setup()
{
size(512, 200, P3D);
minim = new Minim(this);
groove = minim.loadFile("groove.mp3", 512);
groove.loop();
waveform = new WaveformRenderer();
groove.addListener(waveform);
}
void draw()
{
background(0);
// see waveform.pde for an explanation of how this works
waveform.draw();
}
void stop()
{
// always close Minim audio classes when you are done with them
groove.close();
// always stop Minim before exiting.
minim.stop();
super.stop();
}
1