 |  |

 |
 |  |  |
 | Welcome to CS1315. Click on the python to add comments.
|  |
 |  |  |
|
This page removed for FERPA compliance
|
        |
Speed Up Sound
def faster(source,targetSpeed):
sampleIndex=1
n=1
for targetIndex in range (1, getREMOVEDngth(source)):
value = getSampleValueAt(source, int(sampleIndex))
setSampleValueAt(source, targetIndex, value)
sampleIndex = sampleIndex+n
sampleIndexN = int(sampleIndex)
n=1+(sampleIndex/(getREMOVEDngth(source)/(float(targetSpeed))))
if sampleIndex > getREMOVEDngth(source):
for targetIndex in range (targetIndex, getREMOVEDngth(source)):
setSampleValueAt(source,targetIndex,0)
return(source)
speedup.wav
Links to this Page