Commit 494d37f7 authored by Jackson Garner's avatar Jackson Garner

Fix for Sam and I

parent 90e4cb62
......@@ -75,7 +75,7 @@ fig = plt.figure()
fft_plot = fig.add_subplot(121)
#image = fig.add_subplot(122)
image = np.ones((480, 640, 3))
image = np.ones((720, 1280, 3))
sounddevice.play(wav_data, rate)
......@@ -86,7 +86,7 @@ timestep = 1/24
t = time.time()
origin = time.time()
nextBeat = 0
cap = cv2.VideoCapture(0)
cap = cv2.VideoCapture("sn.webm")
while t - origin < len(wav_data) / rate:
ret, frame = cap.read()
if load_from_file == True:
......@@ -123,7 +123,7 @@ while t - origin < len(wav_data) / rate:
#image.show()
a = np.abs(np.fft.fftshift(np.fft.fft(second[:])))
fftToImage.fftToImage(a, image)
cv2.imshow("t", (img * (1/255) + image).clip(0, 1))
# cv2.imshow("t", (img * (1/255) + image).clip(0, 1))
preV = (img * (1/255) + image).clip(0, 1)
row,cols,rgb = img.shape
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment