Write a function to input a sound, then create a canvas sound of the same length. Copy samples from the input into the canvas every third position, i.e., copy from index 0 in the input into the canvas at index 0, then copy from index 3 (skipping index 1 and 2) in the input into the canvas at index 3. What do you hear in the canvas sound? Same sound? Faster? Slower?

What will be an ideal response?


Again the sound is the same length, but even more grainy this time.

```
def alternateCopy2(source):
target = makeEmptySound(getLength(source))

for index in range(0, getLength(source), 3):
sourceValue = getSampleValueAt(source ,index)
setSampleValueAt(target, index , sourceValue)
play(target)
return target
```

Computer Science & Information Technology

You might also like to view...

Redirect the output of an ls –l command to a file named ls.out. Display ls.out using cat.

What will be an ideal response?

Computer Science & Information Technology

A ________ character is used to represent one or more unknown characters in a string

Fill in the blank(s) with correct word

Computer Science & Information Technology

COGNITIVE ASSESSMENT Which of the following is not a technology used by hot spots?

A. Bluetooth B. Wi-Fi C. WiMAX D. UWB

Computer Science & Information Technology

What Windows Server 2016 service is used to keep information about the networks the server connects to and communicates network information to applications on the server?

A. Computer Browser B. Netlogon C. Network List Service D. Server

Computer Science & Information Technology