Waited 5000ms for: <13c0751, 1fbfe86>[count 2, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main

please help me with this coding… i dunno what the problem… maybe the way i put the coding in the wrong place because i mix the coding for pulse sensor and sound visualization… how can i do to fix it…

import processing.serial.*;
Serial port;
int xPos = 1;
float oldHeartrateHeight = 0;

//VARIABLES
float n;
float n3;
float n5;
float speed2;

//MUSIC
import ddf.minim.*;
//import ddf.minim.signals.*;
Minim minim;
AudioInput input;

//MAIN SETUP
void setup () {
fullScreen(P3D);
frameRate(30);
noCursor();
smooth();

// List available serial ports.
println(“Available serial ports:”);
println((Object[])Serial.list());
//println(Serial.list());

// Setup which serial port to use.
// This line might change for different computers.
port = new Serial(this, Serial.list()[0], 115200);

background (0);

//MUSIC LIVE
minim = new Minim(this);
input = minim.getLineIn(Minim.MONO, 1024);
n = float(width)/input.bufferSize();
}

void draw () {

}
void serialEvent (Serial myPort) {
// read the string from the serial port.
String inString = myPort.readStringUntil(’\n’);

if (inString != null) {
// trim off any whitespace:
inString = trim(inString);
// convert to an int
println(inString);
int currentHeartrate = int(inString);

// draw the Heartrate BPM Graph.
float heartrateHeight = map(currentHeartrate, 0, 1023, 0, height);
stroke(0, 255, 0);
line(xPos - 1, height - oldHeartrateHeight, xPos, height - heartrateHeight);
oldHeartrateHeight = heartrateHeight;
// at the edge of the screen, go back to the beginning:
if (xPos >= width) {
xPos = 0;
//background(0);
} else {
// increment the horizontal position:
xPos++;

fill(0, 20);
noStroke();
rect(0, 0, width, height);
translate(width/2, height/2);

for (int i = 0; i < input.bufferSize() -1; i++) {

float angle = sin(i+(n-2))*40;
float x = sin(radians(i))*(n/angle);

float leftLevel = input.left.level() * 20;
ellipse(i, i, leftLevel, leftLevel);
rotateZ(n*-PI/3*0.05);

fill(#00ccff, 90); //Light Blue
}

n += 0.008 ;
n3 += speed2;
n5 += speed2;

}
}
}