Please do not double post. You have a already posted the exact same code multiple times. I've removed the duplicate thread without answers, because it has non-descriptive title (but on the positive side at least it was posted in the right section this time).
Read: https://forum.processing.org/topic/where-to-place-threads-and-other-forum-practices
Take a look at the Minim library code examples to make your sketches sound reactive.
Read: https://forum.processing.org/topic/where-to-place-threads-and-other-forum-practices
Take a look at the Minim library code examples to make your sketches sound reactive.