Final Exam Review Summer 2006: Name that Algorithm!
Questions?
a. the first one is half the frequency- half takes a filename as input . we create two copies of the sound source and target. we set a source Index to 1 and we have a loop for targetIndex from 1 to the end of the target sound. we get a sample value from source at the integer value of the sourceIndex. weset the target at targetIndex to the sample that we got from the source. we then add .5 to the source Index. this means that the source Index, each time through the loop, will take on the values, 1,1.5,2, 2.5,3,3.5... the result is that we take each sample from the source sound twice.
Correct. This function halves the frequency of the sound. -Bobby Mathew
Link to this Page
Summer 2006 Final Review last edited on 24 July 2006 at 9:16 pm by adsl-065-012-181-168.sip.asm.bellsouth.net