Write a general blend function that takes the two sounds to blend as input and returns a new sound.
What will be an ideal response?
```
def blend2(sound ,sound2):
canvas = makeEmptySoundBySeconds(3)
for index in range(0, 20000):
soundSample = getSampleValueAt(sound,index)
setSampleValueAt(canvas ,index ,soundSample)
for index in range (0 ,20000):
soundSample = getSampleValueAt(sound,index+20000) sound2Sample=getSampleValueAt(sound2,index)
newSample = 0.5* soundSample + 0.5* sound2Sample setSampleValueAt(canvas ,index+20000,newSample)
for index in range (20000 ,40000):
sound2Sample = getSampleValueAt(sound2,index)
setSampleValueAt(canvas ,index+20000,sound2Sample) play(canvas)
return canvas
```
You might also like to view...
Which of the following is NOT true regarding macro groups?
A) When a macro group is created, only the name appears in the Navigation Pane regardless of how many submacros it contains. B) It is best practice to create logical groups based on function and purpose when creating them. C) Access requires the submacros in a macro group to be similar. D) When a macro group is executed directly from the Navigation Pane or by clicking Run in Design view, only the first submacro is executed.
The ____ instruction tells the computer to close the current form.
A. Me.End() B. Close() C. Me.Close() D. Exit()