The sounds package allows students to load, transform, save, and record digital sound clips. For example, the following Java code loads an sound clip, plays it, and increases its volume:
import sounds.APSoundClip;
import sounds.Sample;
public class TestVolume{
public static void main(String[]args){
APSoundClip clip = new APSoundClip("BlueBossa.wav");
clip.draw();
clip.play()
for (Sample s: clip)
s.setValue(s.getValue() * 2);
}
}

The APSoundClip class includes methods to
The Sample class includes methods to
|
Download the sounds package
View the sounds API |