Commit 7752eed4 authored by Samuel Warfield's avatar Samuel Warfield

Dynamic Window resize

parent b87330cd
......@@ -76,7 +76,7 @@ fig = plt.figure()
fft_plot = fig.add_subplot(121)
#image = fig.add_subplot(122)
image = np.ones((720, 1280, 3))
sounddevice.play(wav_data, rate)
......@@ -87,7 +87,11 @@ timestep = 1/24
t = time.time()
origin = time.time()
nextBeat = 0
cap = cv2.VideoCapture('snow.webm')
cap = cv2.VideoCapture('tabetop.webm')
print (int(cap.get(4)))
image = np.ones((int(cap.get(4)), int(cap.get(3)), 3))
is_beat = False
while t - origin < len(wav_data) / rate:
ret, frame = cap.read()
......
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