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
```
You might also like to view...
Use Paste Names to document a list of all named ranges in a workbook
Indicate whether the statement is true or false
The correct code to establish a drop-down selection for cell color is ____.Cell Color:
A. B. C. D.
The discussion of base/bounds registers implies that program code is execute-only, and data areas are read-write-only. Is this ever not the case? Explain your answer
What will be an ideal response?
The Committed section of the Performance tab in Task Manager displays the demand for virtual memory.
Answer the following statement true (T) or false (F)