attempt 5 at fps issue
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def extract_waveform_animation(audio_file, window_seconds=5):
|
|
38 |
line.set_data(x_vals[start:end], window)
|
39 |
return line,
|
40 |
|
41 |
-
total_frames = int(duration)
|
42 |
ani = FuncAnimation(fig, update, frames=range(total_frames),
|
43 |
init_func=init, interval=window_seconds*FPS, blit=False)
|
44 |
|
|
|
38 |
line.set_data(x_vals[start:end], window)
|
39 |
return line,
|
40 |
|
41 |
+
total_frames = int(duration) * FPS
|
42 |
ani = FuncAnimation(fig, update, frames=range(total_frames),
|
43 |
init_func=init, interval=window_seconds*FPS, blit=False)
|
44 |
|