(quite old) Java sound docs and demos, sampled & midi
The material here was intended for publication, but unfortunately the project was cancelled before completion. This stuff has sat on the shelf for a good while now, so it might as well go somewhere where it might do someone some good. Copyright mine, license whatever suits you, attribution appreciated.
There were going to be 3 chapters outlined as below, I got as far as getting the code for all the demo apps to work (though not perfect) and first draft write-up of chapter A (Javasound), started chapter B (JMF audio) and did some notes for C (JMF audio-visual). The text is in MS Word format, all source code is included (together with bits of junk, and a fractal MIDI player I couldn't find a good place for).
It should all work with Java 2, SDK 1.3 or thereabouts.
ZIPs contain source, classes, text images & junk.
ChapterA.zip ChapterB.zip ChapterC.zip
Introduction · Section contents · What is Media? · Time-based data · Java media capabilities · Implementations
Chapter A : Audio in your Programs
· Introduction to Digital Audio o 'Legacy' Java audio example : a simple sound player using AudioClip · The Java Sound classes o Sampled sound example : a basic sound recorder/player · MIDI and the Java Sound classes o MIDI example : a fun musical instrument · Practical use of sound in applications o Example of fully sound-enabled application : a simple game
Chapter B : Using the Java Media Framework
· Introduction to the JMF o JMF Audio example : a minimal audio player o JMF Audio example : the basic sound recorder/player revisited
Chapter C : Video in your Programs
· More features of JMF o Multimedia example : a minimal audiovisual player o Multimedia example : a versatile audiovisual recorder/player