Jingle Balls
Not really music to anyone’s ears…
import ddf.minim.*;
import ddf.minim.ugens.*;
Minim minim;
AudioOutput out;
Oscil wave;
void setup(){
size(1000,500);
minim = new Minim(this);
out = minim.getLineOut();
wave = new Oscil( 300, 0.5f, Waves.SINE );
wave.patch( out );
}
void draw(){
background(255);
smooth();
//golan's randomness
float randomness = map(mouseX, 0,width, 0,1);
randomness = constrain(randomness, 0,1);
for (int i=1; i