Java Object that plays melodies