#This function will echo the sample in the sample's duration.
#I chose the delay to be 15800, because it sounded good at 15800.
def echo(delay):
e1 = makeSound("yoursound.wav")
e2 = makeSound("yoursound.wav")
for index in range (delay, getLength(e1)):
echoSample = 0.6*getSampleValueAt(e2, index-delay)
comboSample = getSampleValueAt(e1, index) + echoSample
setSampleValueAt(e1, index, comboSample)
return e1
#I chose the delay to be 15800, because it sounded good at 15800.
def echo(delay):
e1 = makeSound("yoursound.wav")
e2 = makeSound("yoursound.wav")
for index in range (delay, getLength(e1)):
echoSample = 0.6*getSampleValueAt(e2, index-delay)
comboSample = getSampleValueAt(e1, index) + echoSample
setSampleValueAt(e1, index, comboSample)
return e1
No comments:
Post a Comment