Audio Visualisation

your arraylist are half mashed, the way you declare an arraylist is like this:
ArrayList<ClassType> ListName;
its not compiling as BassTones and HighTones are not classes
Also in your void keyPressed() you are initializing each time you are pressing a key which you don’t want
I also dont see why you are using an ArrayList for this.
ArrayLists are good for making a new object in a class when you want to have more than 3 of that object, if you want to be able to remove an object. I would also suggest looking at the reference for ArrayLists.

if you are going to make it so you can press R multiple times and show them all at the same time, I would suggest an ArrayList but at the same time make a Class to record and display and test it with one first


Doge