Hip-hop DJs spin turntables back and forth so that sections of sound are played forwards and backwards quickly. Try combining backwards play and frequency shifting to get the same effect. Play a second of a sound quickly forward, then quickly backward, two or three times. (You might have to move faster than just double the speed.)

What will be an ideal response?


```
def djShift(sound):
sampleRate = getSamplingRate(sound)
#We're gonna have six seconds with a four times frequency
canvas = makeEmptySound(int(((sampleRate)*1.5)+4))

targetIndex = 0

for i in range(0, 6):
if i %2==0:
for index in range(0, sampleRate, 4):
sourceValue = getSampleValueAt(sound, index)
setSampleValueAt(canvas, targetIndex, sourceValue)
targetIndex= targetIndex+1
else:
for index in range(0, sampleRate, 4):
sourceValue = getSampleValueAt(sound, getLength(sound)-1-index)
setSampleValueAt(canvas, targetIndex, sourceValue)
targetIndex= targetIndex+1

play(canvas)
return canvas
```

Computer Science & Information Technology

You might also like to view...

The following session shows the results of execution of the date, more ~/.profile, and more /etc/profile command

What will be an ideal response?

Computer Science & Information Technology

Developers tend to like

a. polished visual design. b. complexity. c. things that inspire people to purchase the product.

Computer Science & Information Technology

To use the Find command for filtering records in a report, click the Find button in the Find group on the ____ tab.

A. File B. Home C. Create D. Database Tools

Computer Science & Information Technology

What option can be used with ssh to enable tunneling of X Windows information??

A. ?-f B. ?-x C. ?-X D. ?-L

Computer Science & Information Technology