//import minim library import ddf.minim.*; import ddf.minim.signals.*; //initialize native minim functions and saw wave Minim minim; AudioOutput out; MouseSaw msaw; //image of graph, drawing the lines is the same effect as drawing pixels but pixels are easier to read so we go with pixels PImage a; boolean onetime = true; //size of applet equals size of audio spectrum int[] aPixels = new int[300*300]; //direction of reading pixels int direction = 1; float signal; void setup() { size(300, 300); PFont fontA= loadFont("Courier.vlw"); textFont(fontA,12); stroke(255); a = loadImage("Picture8.png"); for(int i=0; i width-1 || signal < 0) { direction = direction * -1; } //normal signal direction signal += (0.3*direction); { //loads and pixels to play loadPixels(); for (int i=0; i