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

Re : Adding sound to this counter

$
0
0
Everytime I add the Minim library and type in the code. It comes up with a blank grey screen and doesn't stalls my macbook. This is the code? I guess its wrong? Any help would be most appreciated.
 
Thanks x
 
 
import ddf.minim.*/
import ddf.minim.signals.*/
import ddf.minim.analysis.*/
import ddf.mnim.effects.*/
 
Minim minim;
AudioPlayer Sou;
 
PFont myFont = createFont( "Helvetica-Light", 120);

void setup(){
  size(1500, 1500);
  textFont( myFont );
minim = new Minim(this);
sou = minim.loadFile("iPhone-Ding-1.mp3");
sou.loop();
  
}

void draw(){
  background(0,0);
  
  text( ""+ (float)millis()/ 142800.0, 175, 750);
  text("gallons", 950, 750);
  
  
}
 
 

Viewing all articles
Browse latest Browse all 1768

Trending Articles