Fugue in Mid-D: Using JFugue with Java Sound MIDI

In the previous section, we used the JFugue API to create and play music and to save it as a MIDI file. The open-source JFugue library is built on top of Java Sound, which is part of the core API in Java 1.3 and above. In the previous section, JFugue converted a Pattern into a series of low-level MIDI commands, usually consisting of a sequence of note-on and note-off events. The underlying Java Sound classes process these low-level events and send them to the sound card. You can access this sequence ...

Get Wicked Cool Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.