Java Sound has a well-developed MIDI system, with cleanly separated components such as sequencers and synthesizers, and it allows hooks for meta events as well as ordinary MIDI events. This chapter considers programming using the MIDI API.
Resources
Many resources are available for Java Sound.
The Java Platform Standard Edition 7 API Specification ( http://docs.oracle.com/javase/7/docs/api/ ) is the reference point for all the standard Java APIs, including javax.sound.sampled.
The “Trail: Sound” tutorial at Java Tutorials ( http://docs.oracle.com/javase/tutorial/sound/index.html ) gives a good overview ...