Hay thanx, that fixes that. but now it comes up with: found too many {characters without } to match it.
Sorry to keep bothering you, not too good at this.
I cant figure out where the extra {'s or }'s are
my code is now:
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
class SoundCircle
{
int w;
int h;
float xPos;
float yPos;
float ySpeed;
SoundCircle(int a, int b, int c, AudioPlayer d){
}
Minim m;
SoundCircle circ;
void setup(){
size(500,500);
smooth();
frameRate(1000);
m = new Minim(this);
AudioPlayer player = m.loadFile("Explosion.mp3");
circ = new SoundCircle(250,250,100,player);
}
void draw(){
if(circ.isOver(mouseX, mouseY))
circ.play(dist(mouseX,mouseY,pmouseX,pmouseY));
background(255);
circ.draw();
}import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
class SoundCircle
{
int w;
int h;
float xPos;
float yPos;
float ySpeed;
SoundCircle(int a, int b, int c, AudioPlayer d){
}
Minim m;
SoundCircle circ;
void setup(){
size(500,500);
smooth();
frameRate(1000);
m = new Minim(this);
AudioPlayer player = m.loadFile("Explosion.mp3");
circ = new SoundCircle(250,250,100,player);
}
void draw(){
if(circ.isOver(mouseX, mouseY))
circ.play(dist(mouseX,mouseY,pmouseX,pmouseY));
background(255);
circ.draw();
}