1  public class SoundClipDemo
  2  {
  3     public static void main(String[] args)
  4     {
  5        SoundClip clip = new SoundClip();
  6        clip.pick();
  7        clip.show();    
  8  
  9        int[] samples = clip.getSampleValues();
 10  
 11        // In this example, we don't need the sample rate.
 12        // If you do, call clip.getSampleRate();
 13  
 14        for (int i = 0; i < samples.length; i++)
 15        {
 16           samples[i] = 3 * samples[i];
 17        }
 18        
 19        clip.show();
 20     }
 21  }