The Java Sound Demo showcases how the Java Sound API can be used for controlling audio playback, audio capture, MIDI synthesis, and basic MIDI sequencing. It includes source code, and is designed to work with the Java 2 SDK, Standard Edition 1.3 Release and above.
Download
Instructions
Unzip the zip file to any directory. To start the demo:
java -jar JavaSoundDemo.jar