Create a getClip function for the "gettysburg10.wav" file from the MediaFiles directory. This function should return only the first 6 words of the Gettysburg address.
You should assume that the media path has already been set with setMediaPath(), so you should be able to call getMediaPath directly when loading the original WAV file.
Write a function that takes a single integer as input. This integer corresponds to the number of the word in the first 6 words of your Gettysburg clip.
So, "Four score and seven years ago" has integers of 0:"four" 1:"score" 2:"and" 3:"seven" 4:"years" 5:"ago"
This function should use your functions from part 1 to return the individual word corresponding to the integer given as input.
| Last modified: | 10-23-2008 |
| By: | David O'Gwynn |