Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -88,7 +88,7 @@ def read_file_aubio(filename): · 87 unmodified lines | |||
| 88 | f = aubio.source(filename, hop_size = 1024) | 88 | f = aubio.source(filename, hop_size = 1024) |
| 89 | total_frames = 0 | 89 | total_frames = 0 |
| 90 | while True: | 90 | while True: |
| 91 | samples, read = f() | 91 | _, read = f() |
| 92 | total_frames += read | 92 | total_frames += read |
| 93 | if read < f.hop_size: break | 93 | if read < f.hop_size: break |
| 94 | return total_frames, f.samplerate | 94 | return total_frames, f.samplerate |