We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Minim Library WaveformRenderer waveform;
Page Index Toggle Pages: 1
Minim Library WaveformRenderer waveform; (Read 1693 times)
Minim Library WaveformRenderer waveform;
Mar 19th, 2010, 6:21am
 
Hey, I'm new to the Minim library and have been trying to work with the samples on the Code Log site, but this line WaveformRenderer waveform; constantly returns "Cannot find a class or type named "WaveformRenderer" but I'm working directly from the examples, here's the code, anyone know what's going on?

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", 2048);

waveform = new WaveformRenderer();
// see the example Recordable >> addListener for more about this
groove.addListener(waveform);
}

void draw()
{
background(0);
// see waveform.pde for an explanation of how this works
waveform.draw();
}

void keyPressed()
{
if ( key == 'p' ) groove.play();
}

void stop()
{
// always close Minim audio classes when you are done with them
groove.close();
// always stop Minim before exiting.
minim.stop();

super.stop();
}
Re: Minim Library WaveformRenderer waveform;
Reply #1 - Mar 19th, 2010, 7:29am
 
Have you the Waveform.pde tab in your sketch?
Page Index Toggle Pages: 1