Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

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