public static void helium(String sourceFile, String targetFile)
    {
        Sound sourceObj = new Sound(sourceFile);                                //Construct a new Sound object called sourceObj. A sourceObject now represents the sourceFile object.
        Sound target = new Sound(sourceObj);                                   //Construct a new Sound object called target. The target object now represents the targetFile object.
        int sampleValue = 0;                                                    //The sampleValue variable is declare as an int and is initialized to 0.
        int targetIndex = 0;                                                    //The targetIndex variable is declared as an int and is initialized to 0.
        
        for(int index = 0; index < sourceObj.getLength(); index+=2)             //A for loop is created to traverse the length of the sourceObj. Notice that the loop increments by two each time, not 1.
        {
            sampleValue = sourceObj.getSampleValueAt(index);                    //The getSampleValueAt() method gets the sample value at index position of sampleObj.
            target.setSampleValueAt(targetIndex,sampleValue);                   //The setSampleValueAt() method sets the sample value at the targetIndex position in the target file.
            targetIndex++;                                                      //The targetIndex variable is incremented by 1 each time through the loop.
        }
        int targetLength = target.getLength();
        while(targetIndex < targetLength) {
        	target.setSampleValueAt(targetIndex, 0);
        	targetIndex++;
        }
//        target.play();                                                          //The play() method is invoked on the target object to play the audio with the high pitched audio.
        if(targetFile != null)
        	target.write(targetFile + File.separatorChar + "helium.wav");                                            //The write() method is invoked on the target object and the audio with the new higher pitch is saved as a .wav file.
    }