This is a 2 part tutorial. The goals of this tutorial are to learn how to play background music with greenfoot using my WavPlayer or MidiPlayer classes.
I am assuming for this tutorial some knowledge of Greenfoot and Java.  One should be familiar with Java syntax and have access to the Greenfoot API documentation. If after running the applets at the bottom of the page you do not have sound on the videos, restart your browser or download the videos and play them in a program external to your browser (e.g. QuickTime). This may happen because the sound resources may not be available immediately after freeing them in the applets.
This player demonstrates my WavPlayer class. Click blue to load a sound file. Click green to play it. Click red to stop.
This player demonstrates my MidiPlayer class. Click blue to load a sound file. Click green to play it. Click red to stop.