Make an audio collage. Make it at least 5 seconds long, and include at least two different sounds (i.e., they come from different files). Make a copy of one of those different sounds and modify it using any of the techniques described in this chapter (i.e., mirroring, splicing, volume manipulations). Splice together the original two sounds and the modified sound to make the complete collage.

This example specifically makes use of “preamble10.wav” and “the.wav”, but as long as the end result is over 5 seconds, any sounds may be used.

```
def collage():
source = makeSound("preamble10.wav")
source2 = makeSound("the.wav")
modified = makeEmptySound(getLength(source2))

modifiedSamples = getSamples(modified)
source2Samples = getSamples(source2)
#Mirror Modified
for sourceIndex in range(0, getLength(source2)):
sourceValue = getSampleValue(source2Samples[sourceIndex])
setSampleValue(modifiedSamples[getLength(source2)-1-sourceIndex] ,sourceValue)

#Copy them all over
target =
makeEmptySound((getLength(source)+getLength(source2)+getLength(modified)))
targetIndex = 0
targetSamples = getSamples(target)
sourceSamples=getSamples(source)

#Copy Source 2
for index in range(0, getLength(source2)):
sourceValue = getSampleValue(source2Samples[index])
setSampleValue(targetSamples[targetIndex] ,sourceValue)
targetIndex = targetIndex+1

#Copy Source 1
for index in range(0, getLength(source)):
sourceValue = getSampleValue(sourceSamples[index])
setSampleValue(targetSamples[targetIndex] ,sourceValue)
targetIndex = targetIndex+1

#Copy Modified
for index in range(0, getLength(modified)):
sourceValue = getSampleValue(modifiedSamples[index])
setSampleValue(targetSamples[targetIndex] ,sourceValue)
targetIndex = targetIndex+1

play(target)
return target
```

Computer Science & Information Technology

You might also like to view...

To select nonadjacent changing cells, press and hold the _______ key as you click each cell.

A. Alt B. Shift C. Esc D. Ctrl

Computer Science & Information Technology

Sometimes a board may have an extra PCIe power connector. This connector comes in what two different pin numbers?

A. 4-pin B. 6-pin C. 8-pin D. 8+1 pin

Computer Science & Information Technology