Rewrite the echo function to generate two echoes back, each delay samples previous. (Hint: Start your index loop at 2*delay + 1, then access one echo sample at index-delay and another at index - 2*delay.)
What will be an ideal response?
```
def echo2(delay ,s1):
s2 = duplicateSound(s1)
for index in range(2*delay+1 , getLength(s1)):
# set delay value to original value + delayed value * .6
echoSample = 0.6*getSampleValueAt(s2, index-delay)
echoSample2 = 0.6*getSampleValueAt(s2, index-2*delay)
comboSample = getSampleValueAt(s1,index) + echoSample+echoSample2
setSampleValueAt(s1, index,comboSample)
play(s1)
return s1
```
Computer Science & Information Technology
You might also like to view...
Discuss the considerations to keep in mind as you name symbols on the Library panel.
What will be an ideal response?
Computer Science & Information Technology
Knowledge bases in help desk software are sometimes called smart databases.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology