$ python pianoputer.py
Transponding sound file... Traceback (most recent call last):
File "pianoputer.py", line 127, in <module>
main()
File "pianoputer.py", line 91, in main
transposed_sounds = [pitchshift(sound, n) for n in tones]
File "pianoputer.py", line 50, in pitchshift
stretched = stretch(snd_array, 1.0/factor, window_size, h)
File "pianoputer.py", line 26, in stretch
a1 = snd_array[i: i + window_size]
TypeError: slice indices must be integers or None or have an __index__ method
This solves the following error (issue #7):
The solution was suggested by @wupanhao.