Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : problem with minim

$
0
0
import ddf.minim.*;

Minim minim;
AudioPlayer song;

void setup()
{
size(100, 100);

minim = new Minim(this);

 // below is the problem line
 song = minim.loadFile(“dog.wav”);
song.play();
}

void draw()
{
background(0);
}

void stop()
{
song.close();
minim.stop();

super.stop();
}

This is my code, I have dragged and dropped the dog.wav file, into processing. About the route of the folders, I have the sketchbook on my desktop, which involves the "data" and the "libraries" folders. In the data, folder is the dog.wav file, so I am sure that I did this well. About the "libraries" folder, i followed the instructions, I didn't know it was not necessary.
I am sending an image of the result of my program, hoping it will be helpful. 

Viewing all articles
Browse latest Browse all 1768

Trending Articles