BeatMaking Java program