Java code for a sound machine for relaxation.